Skip to content

Commit ae97728

Browse files
committed
Fix style.sh unset variable when run locally
1 parent f066ad0 commit ae97728

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)