devmapper: remove unnecessary else branch in getPoolName()
Docker-DCO-1.1-Signed-off-by: Mike Snitzer <snitzer@redhat.com> (github: snitm) Upstream-commit: 553b50bd37ade60bfafe5d5cc10f984251741f44 Component: engine
This commit is contained in:
@@ -153,9 +153,8 @@ func (devices *DeviceSet) oldMetadataFile() string {
|
||||
func (devices *DeviceSet) getPoolName() string {
|
||||
if devices.thinPoolDevice == "" {
|
||||
return devices.devicePrefix + "-pool"
|
||||
} else {
|
||||
return devices.thinPoolDevice
|
||||
}
|
||||
return devices.thinPoolDevice
|
||||
}
|
||||
|
||||
func (devices *DeviceSet) getPoolDevName() string {
|
||||
|
||||
Reference in New Issue
Block a user