Skip to content

Commit ee53f7d

Browse files
authored
Merge pull request #41 from slangbot/format-6153-aleino/formatting-fixes
Format code for PR shader-slang#6153
2 parents 4a7b334 + 953feff commit ee53f7d

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)