From f88c6fc096ac7963bc0f818b2f6300c913fd7bab Mon Sep 17 00:00:00 2001 From: Frank Cui Date: Thu, 5 Dec 2019 09:30:51 +1030 Subject: [PATCH] revid/config: Simplfied LogLevel check --- revid/config/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/revid/config/config.go b/revid/config/config.go index e7728554..bfd55fd6 100644 --- a/revid/config/config.go +++ b/revid/config/config.go @@ -267,11 +267,7 @@ var ( // if particular parameters have not been defined. func (c *Config) Validate() error { switch c.LogLevel { - case logger.Debug: - case logger.Info: - case logger.Warning: - case logger.Error: - case logger.Fatal: + case logger.Debug, logger.Info, logger.Warning, logger.Error, logger.Fatal: default: c.LogLevel = defaultVerbosity c.Logger.Log(logger.Info, pkg+"bad LogLevel mode defined, defaulting", "LogLevel", defaultVerbosity)