From 9436485748102ce89461fe8fddf05a0651be5c3e Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 1 Oct 2018 14:39:04 +0300 Subject: Update config.go --- service/http/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'service') diff --git a/service/http/config.go b/service/http/config.go index 14738d2e..5a2c8768 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -70,11 +70,7 @@ func (c *Config) Hydrate(cfg service.Config) error { c.Workers.UpscaleDurations() - if err := c.Valid(); err != nil { - return err - } - - return nil + return c.Valid() } // Valid validates the configuration. -- cgit v1.2.3