Skip to content

Commit a56667a

Browse files
authored
Merge pull request #4535 from tgross35/fmt-fix
Fix style.sh unset variable when run locally
2 parents f066ad0 + ae97728 commit a56667a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/style.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rm "$tmpfile"
5858

5959
# Run once from workspace root to get everything that wasn't handled as an
6060
# individual file.
61-
cargo fmt "$check"
61+
cargo fmt ${check:+"$check"}
6262

6363
# Ensure that `sort` output is not locale-dependent
6464
export LC_ALL=C

0 commit comments

Comments
 (0)