Skip to content

Commit ce7d621

Browse files
1 parent f592fa3 commit ce7d621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatter/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ function check_if_formatter_can_be_applied() {
156156
if [[ "$ROOT_PATH" = "" ]]; then
157157
# Provide information why changes are committed without calling the formatter.
158158
# Formatting code is de facto optional. As a result we do not want the pre-commit hook to abort.
159+
exit_when_no_staged_files_found
159160
exit_when_formatter_prerequisites_are_missing
160161
exit_when_using_non_default_staging_area
161162
exit_when_partially_staged_files_exist
162-
exit_when_no_staged_files_found
163163
fi
164164
}
165165

0 commit comments

Comments
 (0)