diff options
author | Nick White <git@njw.name> | 2020-11-10 12:30:15 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-11-10 12:30:15 +0000 |
commit | 33f1726a4c9f8013dcde39e644281059d9766bc4 (patch) | |
tree | 46e7921a0c5959d072886368665011adf53b62e1 /cmd/getbests/main.go | |
parent | ad7aaf490e78e969bb5495dfda06a33d2a176aec (diff) |
gofmt
Diffstat (limited to 'cmd/getbests/main.go')
-rw-r--r-- | cmd/getbests/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/getbests/main.go b/cmd/getbests/main.go index 9eca0d8..c1ee50d 100644 --- a/cmd/getbests/main.go +++ b/cmd/getbests/main.go @@ -62,8 +62,8 @@ func main() { log.Println("Downloading all best files found") for _, i := range objs { parts := strings.Split(i, "/") - if parts[len(parts) - 1] == "best" { - err = conn.Download(conn.WIPStorageId(), i, parts[0] + "-best") + if parts[len(parts)-1] == "best" { + err = conn.Download(conn.WIPStorageId(), i, parts[0]+"-best") if err != nil { log.Fatalln("Failed to download file", i, err) } |