forked from TrueCloudLab/distribution
cloudfront: use strings.Equalfold()
Minor optimization :) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
3b391d3290
commit
842d4c04f5
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ func (s *awsIPs) tryUpdate() error {
|
|||
regionAllowed := false
|
||||
if len(s.awsRegion) > 0 {
|
||||
for _, ar := range s.awsRegion {
|
||||
if strings.ToLower(region) == ar {
|
||||
if strings.EqualFold(region, ar) {
|
||||
regionAllowed = true
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue