Fix problems found with ineffassign

This commit is contained in:
Nick Craig-Wood
2017-06-13 11:52:36 +01:00
parent 28fcc53e45
commit 740b3f6ae2
9 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func (f *Fs) setRoot(root string) {
f.root = strings.Trim(root, "/")
//Set disk root path.
//Adding "disk:" to root path as all paths on disk start with it
var diskRoot = ""
var diskRoot string
if f.root == "" {
diskRoot = "disk:/"
} else {