From dc9457fb8718f607a96ccc41d610063bf364f50a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 7 Jan 2020 09:03:47 -0800 Subject: [PATCH] fix compilation error --- weed/command/fix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }