summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.