mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #61 from adamreese/fix/golint-out
fix(golint): fix printing blank lines
This commit is contained in:
commit
0029740da2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue