We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31cf4cb commit 462b6c1Copy full SHA for 462b6c1
scripts/style.sh
@@ -180,14 +180,10 @@ s%^./%%
180
needs_formatting=false
181
for f in $files; do
182
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
+ # Match output that says:
+ # 1/1 files would have been formatted. (with --dryrun)
+ # 1/1 files formatted. (without --dryrun)
+ mint run swiftformat "${swift_options[@]}" "$f" 2>&1 | grep '^1/1 files' > /dev/null
191
else
192
"$clang_format_bin" "${clang_options[@]}" "$f" | grep "<replacement " > /dev/null
193
fi
0 commit comments