From e0d1ceb383e5672de1a414f192eb2849a1887934 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 12 May 2021 08:25:08 +0200 Subject: [PATCH] sync: go fmt --- cmd/safcm-remote/log/logger.go | 4 ++-- cmd/safcm-remote/sync/sync_test.go | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cmd/safcm-remote/log/logger.go b/cmd/safcm-remote/log/logger.go index b9fbcf3..f358b75 100644 --- a/cmd/safcm-remote/log/logger.go +++ b/cmd/safcm-remote/log/logger.go @@ -27,12 +27,12 @@ import ( type LogFunc func(level safcm.LogLevel, msg string) type Logger struct { - fun LogFunc + fun LogFunc } func NewLogger(fun LogFunc) *Logger { return &Logger{ - fun: fun, + fun: fun, } } diff --git a/cmd/safcm-remote/sync/sync_test.go b/cmd/safcm-remote/sync/sync_test.go index 2571340..0953c04 100644 --- a/cmd/safcm-remote/sync/sync_test.go +++ b/cmd/safcm-remote/sync/sync_test.go @@ -123,10 +123,9 @@ func prepareSync(req safcm.MsgSyncReq, runner *testRunner) ( res.wg.Done() }() - logger := log.NewLogger( - func(level safcm.LogLevel, msg string) { - res.ch <- fmt.Sprintf("%d: %s", level, msg) - }) + logger := log.NewLogger(func(level safcm.LogLevel, msg string) { + res.ch <- fmt.Sprintf("%d: %s", level, msg) + }) return &Sync{ req: req, cmd: run.NewCmd(runner, logger), -- 2.45.2