summaryrefslogtreecommitdiff
path: root/cmd/getpipelinebook
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-04-07 12:02:54 +0100
committerNick White <git@njw.name>2020-04-07 12:02:54 +0100
commitaf63449be98f1964b67981b2aedda0d2ea70fe6d (patch)
tree92e415fceb313113107fbe530b584b231940c901 /cmd/getpipelinebook
parent22200755d471e77d20f490ffe01ede884b5acfcb (diff)
gofmt
Diffstat (limited to 'cmd/getpipelinebook')
-rw-r--r--cmd/getpipelinebook/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/getpipelinebook/main.go b/cmd/getpipelinebook/main.go
index c23c674..fe2af89 100644
--- a/cmd/getpipelinebook/main.go
+++ b/cmd/getpipelinebook/main.go
@@ -44,8 +44,8 @@ type Pipeliner interface {
}
func getpdfs(conn Pipeliner, l *log.Logger, bookname string) {
- for _, suffix := range []string { ".colour.pdf", ".binarised.pdf" } {
- fn := filepath.Join(bookname, bookname + suffix)
+ for _, suffix := range []string{".colour.pdf", ".binarised.pdf"} {
+ fn := filepath.Join(bookname, bookname+suffix)
l.Println("Downloading PDF", fn)
err := conn.Download(conn.WIPStorageId(), fn, fn)
if err != nil {
@@ -115,7 +115,7 @@ func main() {
}
if *binarisedpdf {
- fn := filepath.Join(bookname, bookname + ".binarised.pdf")
+ fn := filepath.Join(bookname, bookname+".binarised.pdf")
verboselog.Println("Downloading file", fn)
err = conn.Download(conn.WIPStorageId(), fn, fn)
if err != nil {
@@ -124,7 +124,7 @@ func main() {
}
if *colourpdf {
- fn := filepath.Join(bookname, bookname + ".colour.pdf")
+ fn := filepath.Join(bookname, bookname+".colour.pdf")
verboselog.Println("Downloading file", fn)
err = conn.Download(conn.WIPStorageId(), fn, fn)
if err != nil {