Fix more golint warnings.
[arvados.git] / services / keepstore / volume.go
index 5a277b6007a7bdb7ff4ed2db04ddcb7b44606e5d..4d8a0aec7ac06ec4f38e815fe0d23447723e38fa 100644 (file)
@@ -353,9 +353,8 @@ func (vm *RRVolumeManager) Mounts() []*VolumeMount {
 func (vm *RRVolumeManager) Lookup(uuid string, needWrite bool) *VolumeMount {
        if mnt, ok := vm.mountMap[uuid]; ok && (!needWrite || !mnt.ReadOnly) {
                return mnt
-       } else {
-               return nil
        }
+       return nil
 }
 
 // AllReadable returns an array of all readable volumes