From bea0a1bce37a73acb323269edeaa5b7d11a2b42d Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 16 May 2024 07:47:04 +0200 Subject: Fix nits spotted by go vet --- internal/logger/logger.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/logger') diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 195ad3e..96f9f22 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -56,9 +56,10 @@ type Logger struct { mutex sync.Mutex } -func New(cfg Config) (l Logger) { +func New(cfg Config) *Logger { + l := Logger{} l.Reconfigure(cfg) - return + return &l } func (l *Logger) Reconfigure(cfg Config) { -- cgit v1.2.3