From: Simon Ruderich Date: Wed, 12 May 2021 06:25:08 +0000 (+0200) Subject: sync: go fmt X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e0d1ceb383e5672de1a414f192eb2849a1887934;p=safcm%2Fsafcm.git sync: go fmt --- 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),