Skip to content

Commit 354fe48

Browse files
committed
fix: correct error handling in loadTagCmd to satisfy vet and lint
1 parent 6110b07 commit 354fe48

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/tui/update.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,9 @@ func loadTagCmd(client *buildkite.Client, orgSlug, pipelineSlug string, buildNum
14181418
}
14191419

14201420
resp, err := http.Get(url) // #nosec G107
1421+
if err != nil {
1422+
return artifactTagMsg{artifactID: targetArtifactID, err: err}
1423+
}
14211424
defer resp.Body.Close()
14221425

14231426
body, err := io.ReadAll(resp.Body)

0 commit comments

Comments
 (0)