Skip to content

Commit 96bc1c5

Browse files
committed
switch order of checks
1 parent 3b6322b commit 96bc1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/check_changes_for_autoapproval.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ check_changes_for_autoapproval <- function(
2323
) {
2424
checkmate::assert_string(gh_actor)
2525
checkmate::assert_string(base_hub_path)
26+
checkmate::assert_character(changed_files)
2627
if (length(changed_files) == 0) {
2728
cli::cli_abort("Empty PRs cannot be autoapproved.")
2829
}
29-
checkmate::assert_character(changed_files)
3030

3131
# tibble of changed files with paths
3232
changed_files_tbl <- tibble::tibble(

0 commit comments

Comments
 (0)