Skip to content

Commit a60f6aa

Browse files
committed
format code
1 parent 80cb45c commit a60f6aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extras/formatting.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ require_bin "git" "1.8"
119119
require_bin "diff" "2"
120120
((run_all || run_cpp)) && require_bin "clang-format" "17" "18"
121121
((run_all || run_yaml || run_markdown)) && require_bin "prettier" "3"
122-
((run_all || run_sh)) && require_bin "shfmt" "3"
122+
((run_all || run_sh)) && require_bin "shfmt" "3"
123123

124124
if [ "$missing_bin" ]; then
125125
exit 1
@@ -128,11 +128,11 @@ fi
128128
exit_code=0
129129

130130
function list_files() {
131-
if [ "$since_rev" ]; then
132-
git diff --name-only "$since_rev" HEAD $@
133-
else
134-
git ls-files $@
135-
fi
131+
if [ "$since_rev" ]; then
132+
git diff --name-only "$since_rev" HEAD $@
133+
else
134+
git ls-files $@
135+
fi
136136
}
137137

138138
cmake_formatting() {

0 commit comments

Comments
 (0)