Sfoglia il codice sorgente

Cleanup: remove unnecessary return at the end of block in volumes.go

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Lei Jitang 10 anni fa
parent
commit
5746eb9501
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      daemon/volumes.go

+ 0 - 2
daemon/volumes.go

@@ -210,7 +210,6 @@ func (s *volumeStore) Increment(v volume.Volume) {
 		return
 		return
 	}
 	}
 	vc.count++
 	vc.count++
-	return
 }
 }
 
 
 // Decrement decrements the usage count of the passed in volume by 1
 // Decrement decrements the usage count of the passed in volume by 1
@@ -224,7 +223,6 @@ func (s *volumeStore) Decrement(v volume.Volume) {
 		return
 		return
 	}
 	}
 	vc.count--
 	vc.count--
-	return
 }
 }
 
 
 // Count returns the usage count of the passed in volume
 // Count returns the usage count of the passed in volume