Skip to content

Commit 78bf2eb

Browse files
committed
Doesn't need else statement.
1 parent d814ec2 commit 78bf2eb

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("tmpfile download failed: %v", err)
281-
} else {
282-
fmt.Printf("tmpfile downloaded successfully into %v\n", tmpfile)
283281
}
282+
fmt.Printf("tmpfile 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)