summaryrefslogtreecommitdiff
path: root/cmd/getpipelinebook
diff options
context:
space:
mode:
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 {