Skip to content

Commit 5837150

Browse files
committed
Investigate swiftformat on Linux CI
1 parent 38c0f83 commit 5837150

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

FirebaseAI/Sources/AILog.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum AILog {
2525
/// being truncated in log messages.
2626
enum MessageCode: Int {
2727
// Logging Configuration
28-
case verboseLoggingDisabled = 100
28+
case verboseLoggingDisabled = 100
2929
case verboseLoggingEnabled = 101
3030

3131
// API Enablement Errors

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)