diff options
author | Nick White <git@njw.name> | 2019-09-05 22:13:23 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-09-05 22:13:23 +0100 |
commit | 7c897a13ad90bdcaffccf74d43cc4fd20f150226 (patch) | |
tree | e0974acd6a176d3297600c2e50907313ce5d6995 /bookpipeline/cmd/getpipelinebook | |
parent | 70c1c0f0148ea173331f4f6d40274e3b95e3ce41 (diff) |
gofmt
Diffstat (limited to 'bookpipeline/cmd/getpipelinebook')
-rw-r--r-- | bookpipeline/cmd/getpipelinebook/main.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bookpipeline/cmd/getpipelinebook/main.go b/bookpipeline/cmd/getpipelinebook/main.go index 55401e6..66e3f70 100644 --- a/bookpipeline/cmd/getpipelinebook/main.go +++ b/bookpipeline/cmd/getpipelinebook/main.go @@ -15,6 +15,7 @@ const usage = "Usage: getpipelinebook [-a] [-v] bookname\n\nDownloads the pipeli // null writer to enable non-verbose logging to be discarded type NullWriter bool + func (w NullWriter) Write(p []byte) (n int, err error) { return len(p), nil } @@ -72,9 +73,9 @@ func main() { if *all { verboselog.Println("Downloading all files for", bookname) objs, err := conn.ListObjects(conn.WIPStorageId(), bookname) - if err != nil { - log.Fatalln("Failed to get list of files for book", bookname, err) - } + if err != nil { + log.Fatalln("Failed to get list of files for book", bookname, err) + } for _, i := range objs { verboselog.Println("Downloading", i) err = conn.Download(conn.WIPStorageId(), i, i) |