From bd61e3ab86437513781cc01491533a1e8b099a3d Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Tue, 26 Apr 2016 14:14:28 -0700 Subject: [PATCH] fix(golint): fix printing blank lines --- scripts/validate-go.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index cf4e4a8f6..1f0aac130 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -17,7 +17,8 @@ hash godir 2>/dev/null || go get -u github.com/Masterminds/godir echo "==> Running golint..." for pkg in $(godir pkgs | grep -v proto); do - if golint_out=$(golint "$pkg" 2>&1); then + golint_out=$(golint "$pkg" 2>&1) + if [[ -n "$golint_out" ]]; then echo "${yellow}${golint_out}${reset}" fi done