aboutsummaryrefslogtreecommitdiff
path: root/go/weed/download.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/weed/download.go')
-rw-r--r--go/weed/download.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/weed/download.go b/go/weed/download.go
index 4f332bd2e..2e32f3ae9 100644
--- a/go/weed/download.go
+++ b/go/weed/download.go
@@ -49,7 +49,7 @@ func runDownload(cmd *Command, args []string) bool {
filename = fid
}
if strings.HasSuffix(filename, "-list") {
- filename = filename[0:len(filename)-len("-list")]
+ filename = filename[0 : len(filename)-len("-list")]
fids := strings.Split(string(content), "\n")
f, err := os.OpenFile(path.Join(*downloadDir, filename), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
if err != nil {