From ecc33a9f863f372f5fd817d296368e8ef4934905 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 26 Oct 2020 14:28:09 +0100 Subject: [PATCH] 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 --- cmd/cephcsi.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/cephcsi.go b/cmd/cephcsi.go index a55f8f8de..97c299e63 100644 --- a/cmd/cephcsi.go +++ b/cmd/cephcsi.go @@ -180,9 +180,6 @@ func main() { case livenessType: liveness.Run(&conf) - - default: - klog.Fatalln("invalid volume type", conf.Vtype) // calls exit } os.Exit(0)