Skip to content

Commit

Permalink
refactor: nrow to seq_along
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Apr 14, 2024
1 parent 13140c5 commit 5b323d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/response.R
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ Response <- R6::R6Class(

# hooks
if(length(private$.preHooks) > 0) {
for(i in 1:length(private$.preHooks)) {
for(i in seq_along(private$.preHooks)) {
pre_processed <- private$.preHooks[[i]](self, file_content, data, ext)
if(!is_pre_hook(pre_processed)){
cat(error(), "Not a valid return value from pre-hook (ignoring)\n")
Expand Down

0 comments on commit 5b323d4

Please sign in to comment.