diff --git a/weed/command/fix.go b/weed/command/fix.go index e813efc32..8903595fa 100644 --- a/weed/command/fix.go +++ b/weed/command/fix.go @@ -76,7 +76,7 @@ func runFix(cmd *Command, args []string) bool { nm: nm, } - if err = storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil { + if err := storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil { glog.Fatalf("scan .dat File: %v", err) os.Remove(indexFileName) }