MCPcopy Index your code
hub / github.com/cli/cli / Remove

Method Remove

pkg/set/string_set.go:31–37  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

29}
30
31func (s *stringSet) Remove(value string) {
32 if !s.Contains(value) {
33 return
34 }
35 delete(s.m, value)
36 s.v = sliceWithout(s.v, value)
37}
38
39func sliceWithout(s []string, v string) []string {
40 idx := -1

Callers 1

RemoveValuesMethod · 0.95

Implementers 1

stringSetpkg/set/string_set.go

Calls 2

ContainsMethod · 0.95
sliceWithoutFunction · 0.85

Tested by

no test coverage detected