Skip to content

Commit

Permalink
Fixup signer header rules excludeList struct/func descriptions (aws#3970
Browse files Browse the repository at this point in the history
)

Related to the work done in aws#3968 - noted there were a few minor typos made when flipping to allow/exclude named lists.
  • Loading branch information
magnetikonline authored Jul 14, 2021
1 parent fa9c8c0 commit ddf01e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/signer/v4/header_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ func (w allowList) IsValid(value string) bool {
return w.rule.IsValid(value)
}

// excludeList is a generic rule for blacklisting
// excludeList is a generic rule for exclude listing
type excludeList struct {
rule
}

// IsValid for allow list checks if the value is within the allow list
// IsValid for exclude list checks if the value is within the exclude list
func (b excludeList) IsValid(value string) bool {
return !b.rule.IsValid(value)
}
Expand Down

0 comments on commit ddf01e4

Please sign in to comment.