Skip to content

Commit

Permalink
Bump golangci-lint to 1.62
Browse files Browse the repository at this point in the history
and fix govet errors

Signed-off-by: Devanshu <[email protected]>
  • Loading branch information
devanshuVmware committed Dec 6, 2024
1 parent 87ba415 commit 9b7aa35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
version: v1.62
args: -v

4 changes: 2 additions & 2 deletions pkg/vendir/fetch/githubrelease/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func (d Sync) downloadAPIResponse(url string, authToken string) ([]byte, error)
bs, _ := io.ReadAll(resp.Body)
errMsg += fmt.Sprintf(" %s (body: '%s')", hintMsg, bs)
}
return bs, fmt.Errorf(errMsg)
return bs, fmt.Errorf("%s", errMsg)
}

bs, err = io.ReadAll(resp.Body)
Expand Down Expand Up @@ -362,7 +362,7 @@ func (d Sync) downloadFile(url, dstPath, authToken string) error {
bs, _ := io.ReadAll(resp.Body)
errMsg += fmt.Sprintf(" %s (body: '%s')", hintMsg, bs)
}
return fmt.Errorf(errMsg)
return fmt.Errorf("%s", errMsg)
}

out, err := os.Create(dstPath)
Expand Down

0 comments on commit 9b7aa35

Please sign in to comment.