]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
sync: go fmt
authorSimon Ruderich <simon@ruderich.org>
Wed, 12 May 2021 06:25:08 +0000 (08:25 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 12 May 2021 06:25:36 +0000 (08:25 +0200)
cmd/safcm-remote/log/logger.go
cmd/safcm-remote/sync/sync_test.go

index b9fbcf36a03d4f8074a5c932528004973bb41050..f358b75af7bad9cf35f47c4a1abd1a28c2311483 100644 (file)
@@ -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,
        }
 }
 
index 2571340d43d7fce341c1ca693ea1bd3af9f310f3..0953c0490e2fd17dda565b8d357615a1d8117758 100644 (file)
@@ -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),