浏览代码

Merge pull request #16443 from coolljt0725/simplify_volume_code

Cleanup: remove unnecessary return at the end of block in volume.go
Brian Goff 9 年之前
父节点
当前提交
743dc1c791
共有 1 个文件被更改,包括 0 次插入2 次删除
  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