mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
cosmetic
This commit is contained in:
@@ -41,9 +41,7 @@ func (s Sets) Add(key string, value StringSet) Sets {
|
||||
if existingValue, ok := s.psMap.Lookup(key); ok {
|
||||
value = value.Merge(existingValue.(StringSet))
|
||||
}
|
||||
return Sets{
|
||||
psMap: s.psMap.Set(key, value),
|
||||
}
|
||||
return Sets{psMap: s.psMap.Set(key, value)}
|
||||
}
|
||||
|
||||
// Delete the given set from the Sets.
|
||||
@@ -51,9 +49,7 @@ func (s Sets) Delete(key string) Sets {
|
||||
if s.psMap == nil {
|
||||
return EmptySets
|
||||
}
|
||||
return Sets{
|
||||
psMap: s.psMap.Delete(key),
|
||||
}
|
||||
return Sets{psMap: s.psMap.Delete(key)}
|
||||
}
|
||||
|
||||
// Lookup returns the sets stored under key.
|
||||
|
||||
Reference in New Issue
Block a user