Locks mistakenly passed by value
Reports locks that are mistakenly passed by values.
Accidentally copying a value containing a lock may cause both copies to work incorrectly. Generally, such values should be referred to through a pointer. A lock here means a type implementing
sync.Locker, such as
After the Add pointer quick-fix is applied: