Commit 0029740d authored by Adam Reese's avatar Adam Reese

Merge pull request #61 from adamreese/fix/golint-out

fix(golint): fix printing blank lines
parents fe0dcd2d bd61e3ab
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment