From 15a152334e5aacc0158b541e135fe9f0834696dd Mon Sep 17 00:00:00 2001 From: Anmol Sethi <hi@nhooyr.io> Date: Sat, 4 Jul 2020 19:21:25 -0400 Subject: [PATCH] ci/fmt.sh: Cleanup --- ci/fmt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/fmt.sh b/ci/fmt.sh index e6a2d68..b34f143 100755 --- a/ci/fmt.sh +++ b/ci/fmt.sh @@ -21,11 +21,11 @@ main() { stringer -type=opcode,MessageType,StatusCode -output=stringer.go if [[ ${CI-} ]]; then - ensure_fmt + assert_no_changes fi } -ensure_fmt() { +assert_no_changes() { if [[ $(git ls-files --other --modified --exclude-standard) ]]; then git -c color.ui=always --no-pager diff echo -- GitLab