Fix pointer receiver for ShareManagerController
It's better to be consistent with the receiver usage once a pointer
receiver is being used all accesses should be via a pointer receiver.
@@ -401,7 +401,7 @@ func (c *ShareManagerController) isShareManagerRequiredForVolume(volume *longhor
return true
}
-func (c ShareManagerController) detachShareManagerVolume(sm *longhorn.ShareManager) error {
+func (c *ShareManagerController) detachShareManagerVolume(sm *longhorn.ShareManager) error {
log := getLoggerForShareManager(c.logger, sm)
volume, err := c.ds.GetVolume(sm.Name)
if err != nil && !apierrors.IsNotFound(err) {
