devmapper: remove unnecessary else branch in getPoolName()
Docker-DCO-1.1-Signed-off-by: Mike Snitzer <snitzer@redhat.com> (github: snitm)
This commit is contained in:
parent
e49567ba72
commit
553b50bd37
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue