aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/config/option.go
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 17:45:21 +0200
committerOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 17:45:21 +0200
commit5c4c24b7d4ebc43a2a68bcf9f2f7aa1f96f43050 (patch)
tree05c5ca4e5c785b5d679af37a03e993c0191d6064 /plumbing/format/config/option.go
parenta9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff)
downloadgo-git-5c4c24b7d4ebc43a2a68bcf9f2f7aa1f96f43050.tar.gz
Use EqualFold for comparison
Diffstat (limited to 'plumbing/format/config/option.go')
-rw-r--r--plumbing/format/config/option.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/config/option.go b/plumbing/format/config/option.go
index d4775e4..218f992 100644
--- a/plumbing/format/config/option.go
+++ b/plumbing/format/config/option.go
@@ -19,7 +19,7 @@ type Options []*Option
// IsKey returns true if the given key matches
// this option's key in a case-insensitive comparison.
func (o *Option) IsKey(key string) bool {
- return strings.ToLower(o.Key) == strings.ToLower(key)
+ return strings.EqualFold(o.Key, key)
}
func (opts Options) GoString() string {