Skip to content

Commit

Permalink
refactor: use strings.EqualFold
Browse files Browse the repository at this point in the history
Signed-off-by: zhuhaicity <[email protected]>
  • Loading branch information
zhuhaicity committed Jan 12, 2025
1 parent 94d7812 commit 1466626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/solver/store/memory/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (s *SolverStoreMemory) GetResourceOfferByAddress(address string) (*data.Res
s.mutex.RLock()
defer s.mutex.RUnlock()
for _, resourceOffer := range s.resourceOfferMap {
if strings.ToLower(resourceOffer.ResourceProvider) == strings.ToLower(address) {
if strings.EqualFold(resourceOffer.ResourceProvider, address) {
return resourceOffer, nil
}
}
Expand Down

0 comments on commit 1466626

Please sign in to comment.