From 3180c1b540e1d5108c4ac72fab20d854e70cc604 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Mon, 22 Feb 2021 18:35:15 +0100 Subject: [PATCH] chore: reformat code --- part/record.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/part/record.go b/part/record.go index 6433898..c3f87f5 100644 --- a/part/record.go +++ b/part/record.go @@ -71,7 +71,7 @@ func (r *Recorder) onSwitchRecord(_ mqtt.Client, message mqtt.Message) { r.muEnabled.Lock() defer r.muEnabled.Unlock() - if ! r.enabled && msg.GetEnabled() { + if !r.enabled && msg.GetEnabled() { r.recordSet = r.idGenerator.Next() } @@ -110,9 +110,9 @@ func (r *Recorder) onFrame(_ mqtt.Client, message mqtt.Message) { } record := events.RecordMessage{ - Frame: &msg, - Steering: steering, - RecordSet: r.recordSet, + Frame: &msg, + Steering: steering, + RecordSet: r.recordSet, } payload, err := proto.Marshal(&record) @@ -157,7 +157,6 @@ var registerCallBacks = func(r *Recorder) { } } - type IdGenerator interface { Next() string }