aboutsummaryrefslogtreecommitdiff
path: root/weed/command/fix.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/fix.go')
-rw-r--r--weed/command/fix.go2
1 files changed, 1 insertions, 1 deletions
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)
}