Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Remove redudant return
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Cunha committed Oct 11, 2017
1 parent dbd350c commit 3309911
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/data/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ func commitPath(path string, destination S3Path) {
func uploadFileToS3(uploader *s3manager.Uploader, bucket string, key string, filePath string) {
file, err := os.Open(filePath)
if err != nil {
fmt.Println("Failed to open file", file, err)
os.Exit(1)
exitErrorf("Failed to open file", file, err)
}
defer file.Close()

Expand All @@ -122,7 +121,6 @@ func uploadFileToS3(uploader *s3manager.Uploader, bucket string, key string, fil

if err != nil {
exitErrorf("Failed to upload data to %s/%s, %s", bucket, key, err.Error())
return
}
}

Expand Down

0 comments on commit 3309911

Please sign in to comment.