From 2a74e824c92601a1c16e85bb44324aa5e43d8a37 Mon Sep 17 00:00:00 2001 From: johnabass Date: Tue, 3 Jan 2023 11:50:26 -0800 Subject: [PATCH] corrected bad usage of LoggerIn --- main.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 0cb7021..efcf099 100644 --- a/main.go +++ b/main.go @@ -124,14 +124,9 @@ func main() { config.ApplicationName = applicationName return config, nil }, - func(u config.Unmarshaller) (sallust.LoggerIn, error) { - var c sallust.Config - - if err := u.UnmarshalKey("log", &c); err != nil { - return sallust.LoggerIn{}, err - } - - return sallust.LoggerIn{Config: c}, nil + func(u config.Unmarshaller) (c sallust.Config, err error) { + err = u.UnmarshalKey("log", &c) + return }, ), fx.Invoke(