summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-10-01 14:39:40 +0300
committerGitHub <[email protected]>2018-10-01 14:39:40 +0300
commit1ab9bb393b48eb50c4efec89d8974b03b47939ab (patch)
treed2d89023969463922e74046bf7c8441640606404
parent9436485748102ce89461fe8fddf05a0651be5c3e (diff)
Update container_test.go
-rw-r--r--service/container_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/service/container_test.go b/service/container_test.go
index 7d83ee9a..99cb75a3 100644
--- a/service/container_test.go
+++ b/service/container_test.go
@@ -87,11 +87,7 @@ type dConfig struct {
// Hydrate must populate Config values using given Config source. Must return error if Config is not valid.
func (c *dConfig) Hydrate(cfg Config) error {
- if err := cfg.Unmarshal(c); err != nil {
- return err
- }
-
- return nil
+ return cfg.Unmarshal(c)
}
// InitDefaults allows to init blank config with pre-defined set of default values.