diff --git a/config/noop_test.go b/config/noop_test.go index 9b58926d..80b1f8cc 100644 --- a/config/noop_test.go +++ b/config/noop_test.go @@ -29,8 +29,7 @@ func TestNoop(t *testing.T) { return nil } - - cfg := config.NewConfig(config.Struct(conf),config.BeforeLoad(blfn),config.AfterLoad(alfn)) + cfg := config.NewConfig(config.Struct(conf), config.BeforeLoad(blfn), config.AfterLoad(alfn)) if err := cfg.Init(); err != nil { t.Fatal(err) } @@ -56,6 +55,4 @@ func TestNoop(t *testing.T) { t.Fatal("AfterLoad option not working") } - - } diff --git a/service.go b/service.go index dac93600..8ab4567e 100644 --- a/service.go +++ b/service.go @@ -50,7 +50,7 @@ func (s *service) Init(opts ...Option) error { if s.opts.Configs != nil { for _, c := range s.opts.Configs { - if err := c.Init(config.Context(s.opts.Context) ); err != nil { + if err := c.Init(config.Context(s.opts.Context)); err != nil { return err } }