mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
Fix stupid bug in Sets.Delete()
This commit is contained in:
@@ -67,7 +67,7 @@ func (s Sets) Delete(key string) Sets {
|
||||
return s // not found
|
||||
}
|
||||
result := make([]stringSetEntry, len(s.entries)-1)
|
||||
copy(result, s.entries[:i-1])
|
||||
copy(result, s.entries[:i])
|
||||
copy(result[i:], s.entries[i+1:])
|
||||
return Sets{entries: result}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user