Skip to content

Commit

Permalink
Better naming [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 9, 2019
1 parent a78115d commit be281e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/s3.go
Expand Up @@ -50,9 +50,9 @@ func downloadS3File(filename string) ReadSeekCloser {
SharedConfigState: session.SharedConfigEnable,
}))

u, err1 := url.Parse(filename)
if err1 != nil {
log.Fatal(err1)
u, err := url.Parse(filename)
if err != nil {
log.Fatal(err)
}
bucket := u.Host
key := u.Path
Expand All @@ -68,8 +68,8 @@ func downloadS3File(filename string) ReadSeekCloser {
log.Fatal(err)
}

buff, err2 := ioutil.ReadAll(resp.Body)
if err2 != nil {
buff, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}

Expand Down

0 comments on commit be281e1

Please sign in to comment.