Skip to content

Commit

Permalink
chore: review feedback improvements
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Olshansky <[email protected]>
  • Loading branch information
bryanchriswhite and Olshansk authored Jan 19, 2024
1 parent 6fced72 commit e23acc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x/supplier/keeper/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ func (k msgServer) queryAndValidateSessionHeader(

// foundSupplier ensures that the given supplier address is in the given list of suppliers.
func foundSupplier(suppliers []*sharedtypes.Supplier, supplierAddr string) bool {
var found bool
for _, supplier := range suppliers {
if supplier.Address == supplierAddr {
found = true
break
return true
}
}
return found
return false
}

0 comments on commit e23acc6

Please sign in to comment.