From 45316ef6c2f67380000cb83db510362f54826bff Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Mon, 19 Apr 2021 17:02:40 +0100 Subject: [PATCH] Fix lint issue with receiver name --- protocol/messenger_maps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/messenger_maps.go b/protocol/messenger_maps.go index 27f3d5534aa..8be4471b35b 100644 --- a/protocol/messenger_maps.go +++ b/protocol/messenger_maps.go @@ -79,9 +79,9 @@ func (cm *contactMap) Delete(contactID string) { cm.sm.Delete(contactID) } -func (im *contactMap) Len() int { +func (cm *contactMap) Len() int { count := 0 - im.Range(func(contactID string, contact *Contact) (shouldContinue bool) { + cm.Range(func(contactID string, contact *Contact) (shouldContinue bool) { count++ return true })