Skip to content

Commit 745a106

Browse files
authored
Merge pull request #10 from andrew-field/master
Doesn't need else statement.
2 parents b3035b2 + c013d14 commit 745a106

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ func downloadAndInstall(dl *GoDownload) error {
278278
tmpfile, shasum, err := downloadFile(dl)
279279
if err != nil {
280280
return fmt.Errorf("temporary file download failed: %v", err)
281-
} else {
282-
fmt.Printf("Temporary file downloaded successfully into %v\n", tmpfile)
283281
}
282+
fmt.Printf("Temporary file downloaded successfully into %v\n", tmpfile)
284283
if shasum != dl.SHA256 {
285284
return fmt.Errorf("bad checksum, expected %s got %s", dl.SHA256, shasum)
286285
}

0 commit comments

Comments
 (0)