mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-24 17:44:32 +02:00
Linter fixes (error handling, unused constants, raw strings)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user