diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:40:53 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:40:53 +0200 |
commit | a99446e290f038900b893e21362c6ff766c30f5e (patch) | |
tree | 8c9eca0445a0bf31ef57840c3950f923d5dc27b8 /plumbing/protocol | |
parent | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff) | |
download | go-git-a99446e290f038900b893e21362c6ff766c30f5e.tar.gz |
Minor linter fixes
Diffstat (limited to 'plumbing/protocol')
-rw-r--r-- | plumbing/protocol/packp/capability/list.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plumbing/protocol/packp/capability/list.go b/plumbing/protocol/packp/capability/list.go index 9609211..f41ec79 100644 --- a/plumbing/protocol/packp/capability/list.go +++ b/plumbing/protocol/packp/capability/list.go @@ -86,10 +86,7 @@ func (l *List) Get(capability Capability) []string { // Set sets a capability removing the previous values func (l *List) Set(capability Capability, values ...string) error { - if _, ok := l.m[capability]; ok { - delete(l.m, capability) - } - + delete(l.m, capability) return l.Add(capability, values...) } |