Skip to content

Commit

Permalink
fixed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ktarplee committed Feb 25, 2020
1 parent d40639c commit 72a9102
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions pkg/skaffold/deploy/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,9 @@ func (h *HelmDeployer) deployRelease(ctx context.Context, out io.Writer, r lates
color.Yellow.Fprintf(out, "Helm release %s not installed. Installing...\n", releaseName)
isInstalled = false
}
} else {
if err := h.helm(ctx, ioutil.Discard, false, "get", releaseName); err != nil {
color.Yellow.Fprintf(out, "Helm release %s not installed. Installing...\n", releaseName)
isInstalled = false
}
} else if err := h.helm(ctx, ioutil.Discard, false, "get", releaseName); err != nil {
color.Yellow.Fprintf(out, "Helm release %s not installed. Installing...\n", releaseName)
isInstalled = false
}

// Dependency builds should be skipped when trying to install a chart
Expand Down Expand Up @@ -466,10 +464,8 @@ func (h *HelmDeployer) getReleaseInfo(ctx context.Context, release string, names
if err := h.helm(ctx, &releaseInfo, false, installedArgs...); err != nil {
return nil, fmt.Errorf("error retrieving helm deployment info: %s", releaseInfo.String())
}
} else {
if err := h.helm(ctx, &releaseInfo, false, "get", release); err != nil {
return nil, fmt.Errorf("error retrieving helm deployment info: %s", releaseInfo.String())
}
} else if err := h.helm(ctx, &releaseInfo, false, "get", release); err != nil {
return nil, fmt.Errorf("error retrieving helm deployment info: %s", releaseInfo.String())
}
return bufio.NewReader(&releaseInfo), nil
}
Expand Down

0 comments on commit 72a9102

Please sign in to comment.