Change the string serialization of the Nothing selector

The previous option was not serializable, and was used in questionable scenarios to represent what we also use Everything() for. The individual context needs to make the decision about everything vs nothing (and nothing has no real concept in our API today) so this seems safe.
parent c5059bd7
...@@ -62,7 +62,7 @@ type nothingSelector struct{} ...@@ -62,7 +62,7 @@ type nothingSelector struct{}
func (n nothingSelector) Matches(_ Labels) bool { return false } func (n nothingSelector) Matches(_ Labels) bool { return false }
func (n nothingSelector) Empty() bool { return false } func (n nothingSelector) Empty() bool { return false }
func (n nothingSelector) String() string { return "<null>" } func (n nothingSelector) String() string { return "" }
func (n nothingSelector) Add(_ ...Requirement) Selector { return n } func (n nothingSelector) Add(_ ...Requirement) Selector { return n }
func (n nothingSelector) Requirements() (Requirements, bool) { return nil, false } func (n nothingSelector) Requirements() (Requirements, bool) { return nil, false }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment