aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
Diffstat (limited to 'go')
-rw-r--r--go/storage/store.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/go/storage/store.go b/go/storage/store.go
index 0238bbbbd..fcb9ce41c 100644
--- a/go/storage/store.go
+++ b/go/storage/store.go
@@ -146,9 +146,8 @@ func (s *Store) FreezeVolume(volumeIdString string) error {
return fmt.Errorf("Volume %s is already read-only", volumeIdString)
}
return v.freeze()
- } else {
- return fmt.Errorf("volume id %s is not found during freeze!", vid)
}
+ return fmt.Errorf("volume id %s is not found during freeze!", vid)
}
func (l *DiskLocation) loadExistingVolumes() {
if dirs, err := ioutil.ReadDir(l.directory); err == nil {