Browse Source

Merge pull request #16443 from coolljt0725/simplify_volume_code

Cleanup: remove unnecessary return at the end of block in volume.go
Brian Goff 9 years ago
parent
commit
743dc1c791
1 changed files with 0 additions and 2 deletions
  1. 0 2
      daemon/volumes.go

+ 0 - 2
daemon/volumes.go

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