mirror of
https://github.com/github/codeql.git
synced 2026-01-28 22:02:57 +01:00
Break out of loop when a match has been found
This commit is contained in:
committed by
Chris Smowton
parent
982f11f8c7
commit
213fa1fec2
@@ -162,6 +162,7 @@ func (l *Labeler) ScopedObjectID(object types.Object, getTypeLabel func() Label)
|
||||
isRecv = true
|
||||
methlbl, _ := l.MethodID(meth, getTypeLabel())
|
||||
label, _ = l.ReceiverObjectID(object, methlbl)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user