Not sure I understand were there may be a situation when iter is nil. If there isn't any I suggest removing this atleast if one arises it will be easier to debug as it will result in nil pointer panic instead of it passing silently as an ErrNoConnections