mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
fix lint
This commit is contained in:
parent
052351e0bf
commit
230054991c
|
|
@ -339,6 +339,7 @@ func (n *Notifier) addPeekingDevice(roomID, userID, deviceID string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not thread-safe: must be called on the OnNewEvent goroutine only
|
// Not thread-safe: must be called on the OnNewEvent goroutine only
|
||||||
|
// nolint:unused
|
||||||
func (n *Notifier) removePeekingDevice(roomID, userID, deviceID string) {
|
func (n *Notifier) removePeekingDevice(roomID, userID, deviceID string) {
|
||||||
if _, ok := n.roomIDToPeekingDevices[roomID]; !ok {
|
if _, ok := n.roomIDToPeekingDevices[roomID]; !ok {
|
||||||
n.roomIDToPeekingDevices[roomID] = make(peekingDeviceSet)
|
n.roomIDToPeekingDevices[roomID] = make(peekingDeviceSet)
|
||||||
|
|
@ -409,6 +410,7 @@ func (s peekingDeviceSet) add(d types.PeekingDevice) {
|
||||||
s[d] = true
|
s[d] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:unused
|
||||||
func (s peekingDeviceSet) remove(d types.PeekingDevice) {
|
func (s peekingDeviceSet) remove(d types.PeekingDevice) {
|
||||||
delete(s, d)
|
delete(s, d)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue