diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-07-16 21:29:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 21:29:58 +0200 |
commit | 641ee1dd69d3b8616127623e4b9341f4f4196d12 (patch) | |
tree | c37ce033ec64f0378acc2cde8ae59a54cdd74667 /plumbing/protocol | |
parent | 7906922c319b6077e8e66b70711073fb59a08a20 (diff) | |
parent | 8b8e4561eec882fad6e93d8e4257a9dc21311f3e (diff) | |
download | go-git-641ee1dd69d3b8616127623e4b9341f4f4196d12.tar.gz |
Merge pull request #125 from cristaloleg/minor-linter-fixes
*: 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...) } |