diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:45:21 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:45:21 +0200 |
commit | 5c4c24b7d4ebc43a2a68bcf9f2f7aa1f96f43050 (patch) | |
tree | 05c5ca4e5c785b5d679af37a03e993c0191d6064 /plumbing/format/config/section.go | |
parent | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff) | |
download | go-git-5c4c24b7d4ebc43a2a68bcf9f2f7aa1f96f43050.tar.gz |
Use EqualFold for comparison
Diffstat (limited to 'plumbing/format/config/section.go')
-rw-r--r-- | plumbing/format/config/section.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/config/section.go b/plumbing/format/config/section.go index 4a17e3b..f743da6 100644 --- a/plumbing/format/config/section.go +++ b/plumbing/format/config/section.go @@ -61,7 +61,7 @@ func (s Subsections) GoString() string { // IsName checks if the name provided is equals to the Section name, case insensitive. func (s *Section) IsName(name string) bool { - return strings.ToLower(s.Name) == strings.ToLower(name) + return strings.EqualFold(s.Name, name) } // Option return the value for the specified key. Empty string is returned if |