From e08276c2e2a12465a8c9714059fc8cacab78cbad Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 8 Dec 2020 00:41:14 +0300 Subject: [PATCH] gofmt Signed-off-by: Vasiliy Tolstov --- config/noop_test.go | 5 +---- service.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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 } }