Skip to content

Commit 462b6c1

Browse files
committed
[CI] Run swiftformat in style.sh on Linux
1 parent 31cf4cb commit 462b6c1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

scripts/style.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,10 @@ s%^./%%
180180
needs_formatting=false
181181
for f in $files; do
182182
if [[ "${f: -6}" == '.swift' ]]; then
183-
if [[ "$system" == 'Darwin' ]]; then
184-
# Match output that says:
185-
# 1/1 files would have been formatted. (with --dryrun)
186-
# 1/1 files formatted. (without --dryrun)
187-
mint run swiftformat "${swift_options[@]}" "$f" 2>&1 | grep '^1/1 files' > /dev/null
188-
else
189-
false
190-
fi
183+
# Match output that says:
184+
# 1/1 files would have been formatted. (with --dryrun)
185+
# 1/1 files formatted. (without --dryrun)
186+
mint run swiftformat "${swift_options[@]}" "$f" 2>&1 | grep '^1/1 files' > /dev/null
191187
else
192188
"$clang_format_bin" "${clang_options[@]}" "$f" | grep "<replacement " > /dev/null
193189
fi

0 commit comments

Comments
 (0)