Merge pull request #871 from mlguerrero12/fixwastedassignlinter
Fix wastedassign linter errors
This commit is contained in:
commit
6f6345ca05
@ -118,7 +118,6 @@ func (s *Store) FindByID(id string, ifname string) bool {
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
|
||||
found := false
|
||||
match := strings.TrimSpace(id) + LineBreak + ifname
|
||||
found, err := s.FindByKey(match)
|
||||
|
||||
@ -155,7 +154,6 @@ func (s *Store) ReleaseByKey(match string) (bool, error) {
|
||||
// N.B. This function eats errors to be tolerant and
|
||||
// release as much as possible
|
||||
func (s *Store) ReleaseByID(id string, ifname string) error {
|
||||
found := false
|
||||
match := strings.TrimSpace(id) + LineBreak + ifname
|
||||
found, err := s.ReleaseByKey(match)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user