cleanup: no need to validate conf.Vtype twice

conf.Vtype was verified already, no need to do it a 2nd time.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-10-26 14:28:09 +01:00 committed by mergify[bot]
parent 4c91f07c78
commit ecc33a9f86

View File

@ -180,9 +180,6 @@ func main() {
case livenessType: case livenessType:
liveness.Run(&conf) liveness.Run(&conf)
default:
klog.Fatalln("invalid volume type", conf.Vtype) // calls exit
} }
os.Exit(0) os.Exit(0)