Linter fixes (error handling, unused constants, raw strings)

This commit is contained in:
comp500
2023-03-10 17:06:48 +00:00
parent da04eb7f13
commit aeae76a569
9 changed files with 30 additions and 19 deletions

View File

@@ -126,6 +126,9 @@ var installCmd = &cobra.Command{
func getSha1(url string) (string, error) {
// TODO: hook up to existing cache system? might not be that useful
mainHasher, err := core.GetHashImpl("sha1")
if err != nil {
return "", err
}
resp, err := http.Get(url)
if err != nil {
return "", err