summaryrefslogtreecommitdiff
path: root/cmd/getbests
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-11-10 12:30:15 +0000
committerNick White <git@njw.name>2020-11-10 12:30:15 +0000
commit33f1726a4c9f8013dcde39e644281059d9766bc4 (patch)
tree46e7921a0c5959d072886368665011adf53b62e1 /cmd/getbests
parentad7aaf490e78e969bb5495dfda06a33d2a176aec (diff)
gofmt
Diffstat (limited to 'cmd/getbests')
-rw-r--r--cmd/getbests/main.go4
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)
}