mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-27 20:03:52 +00:00
remove redundant clause in string_slice_flag
This commit is contained in:
@@ -49,7 +49,7 @@ func (s *StringSlice) Set(val string) error {
|
|||||||
if s.value == nil {
|
if s.value == nil {
|
||||||
return fmt.Errorf("no target (nil pointer to []string)")
|
return fmt.Errorf("no target (nil pointer to []string)")
|
||||||
}
|
}
|
||||||
if *s.value == nil || !s.changed {
|
if !s.changed {
|
||||||
*s.value = make([]string, 0)
|
*s.value = make([]string, 0)
|
||||||
}
|
}
|
||||||
*s.value = append(*s.value, val)
|
*s.value = append(*s.value, val)
|
||||||
|
|||||||
Reference in New Issue
Block a user