From 230054991cffa15025ce7f268338770d6c29f24b Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 9 Sep 2020 02:37:17 +0100 Subject: [PATCH] fix lint --- syncapi/sync/notifier.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncapi/sync/notifier.go b/syncapi/sync/notifier.go index e7642c3d8..fcac3f16c 100644 --- a/syncapi/sync/notifier.go +++ b/syncapi/sync/notifier.go @@ -339,6 +339,7 @@ func (n *Notifier) addPeekingDevice(roomID, userID, deviceID string) { } // Not thread-safe: must be called on the OnNewEvent goroutine only +// nolint:unused func (n *Notifier) removePeekingDevice(roomID, userID, deviceID string) { if _, ok := n.roomIDToPeekingDevices[roomID]; !ok { n.roomIDToPeekingDevices[roomID] = make(peekingDeviceSet) @@ -409,6 +410,7 @@ func (s peekingDeviceSet) add(d types.PeekingDevice) { s[d] = true } +// nolint:unused func (s peekingDeviceSet) remove(d types.PeekingDevice) { delete(s, d) }