Skip to content

Commit eb24332

Browse files
Remove duplicate code
1 parent 32c06c9 commit eb24332

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

check_for_updates.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ func checkForUpdates() (string, error) {
3939
return "", err
4040
}
4141
defer resp.Body.Close()
42-
if err != nil {
43-
return "", err
44-
}
45-
defer resp.Body.Close()
4642
if resp.StatusCode != http.StatusOK {
4743
return "", fmt.Errorf("failed to fetch latest release: status code %d", resp.StatusCode)
4844
}

0 commit comments

Comments
 (0)