mirror of https://github.com/docker/docs.git
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
|
@ -153,9 +153,8 @@ func (devices *DeviceSet) oldMetadataFile() string {
|
||||||
func (devices *DeviceSet) getPoolName() string {
|
func (devices *DeviceSet) getPoolName() string {
|
||||||
if devices.thinPoolDevice == "" {
|
if devices.thinPoolDevice == "" {
|
||||||
return devices.devicePrefix + "-pool"
|
return devices.devicePrefix + "-pool"
|
||||||
} else {
|
|
||||||
return devices.thinPoolDevice
|
|
||||||
}
|
}
|
||||||
|
return devices.thinPoolDevice
|
||||||
}
|
}
|
||||||
|
|
||||||
func (devices *DeviceSet) getPoolDevName() string {
|
func (devices *DeviceSet) getPoolDevName() string {
|
||||||
|
|
Loading…
Reference in New Issue