cloudfront: use strings.Equalfold()

Minor optimization :)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-11-03 00:50:54 +01:00
parent 3b391d3290
commit 842d4c04f5
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}