Unverified Commit c85f9ee8 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #5485 from tariq1890/fix_lint

style: fix golint error in init.go for redundant err!=nil check
parents 360016a5 29795691
......@@ -47,11 +47,8 @@ func Initialize(home helmpath.Home, out io.Writer, skipRefresh bool, settings he
if err := ensureDefaultRepos(home, out, skipRefresh, settings, stableRepositoryURL, localRepositoryURL); err != nil {
return err
}
if err := ensureRepoFileFormat(home.RepositoryFile(), out); err != nil {
return err
}
return nil
return ensureRepoFileFormat(home.RepositoryFile(), out)
}
// ensureDirectories checks to see if $HELM_HOME exists.
......
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