diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-05-16 07:47:04 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-05-16 07:47:04 +0200 |
commit | bea0a1bce37a73acb323269edeaa5b7d11a2b42d (patch) | |
tree | f809f0d0129478e0c1dbe526c7ca6855c6665432 /internal/logger | |
parent | 6f90052197d3906cb5406b9c65a3a8cdc7fe200b (diff) |
Fix nits spotted by go vet
Diffstat (limited to 'internal/logger')
-rw-r--r-- | internal/logger/logger.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |