diff options
author | Nick White <git@njw.name> | 2021-07-13 11:54:00 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-07-13 11:54:00 +0100 |
commit | 45b0c3ed61b1a7b7d18090f483c5d9ff9cddec7b (patch) | |
tree | 13de0f1a0ac47c38e172e4082e6345a4c511e1bf /cmd/getstats | |
parent | e22c16ca84163636d674fb0935156f466169e1a3 (diff) |
gofmt
Diffstat (limited to 'cmd/getstats')
-rw-r--r-- | cmd/getstats/main.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd/getstats/main.go b/cmd/getstats/main.go index 5ed1414..b51be2a 100644 --- a/cmd/getstats/main.go +++ b/cmd/getstats/main.go @@ -62,16 +62,16 @@ func main() { log.Println("Downloading all best and conf files found") for _, i := range objs { parts := strings.Split(i, "/") - if parts[len(parts) - 1] == "best" { - fmt.Printf("Downloading %s to %s\n", i, parts[0] + "-best") - err = conn.Download(conn.WIPStorageId(), i, parts[0] + "-best") + if parts[len(parts)-1] == "best" { + fmt.Printf("Downloading %s to %s\n", i, parts[0]+"-best") + err = conn.Download(conn.WIPStorageId(), i, parts[0]+"-best") if err != nil { log.Fatalln("Failed to download file", i, err) } } - if parts[len(parts) - 1] == "conf" { - fmt.Printf("Downloading %s to %s\n", i, parts[0] + "-conf") - err = conn.Download(conn.WIPStorageId(), i, parts[0] + "-conf") + if parts[len(parts)-1] == "conf" { + fmt.Printf("Downloading %s to %s\n", i, parts[0]+"-conf") + err = conn.Download(conn.WIPStorageId(), i, parts[0]+"-conf") if err != nil { log.Fatalln("Failed to download file", i, err) } @@ -99,8 +99,8 @@ func main() { } if strings.HasSuffix(parts[1], ".hocr") { - fmt.Printf("Downloading %s to %s\n", i, parts[0] + "-hocr") - err = conn.Download(conn.WIPStorageId(), i, parts[0] + "-hocr") + fmt.Printf("Downloading %s to %s\n", i, parts[0]+"-hocr") + err = conn.Download(conn.WIPStorageId(), i, parts[0]+"-hocr") if err != nil { log.Fatalln("Failed to download file", i, err) } |