File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
)
18
18
19
19
type stringslice []string
20
- type notifyfilter map [string ][]string
20
+ type mapstringslice map [string ][]string
21
21
22
22
var (
23
23
buildVersion string
28
28
notifyOutput bool
29
29
notifyContainerID string
30
30
notifyContainerSignal int
31
- notifyContainerFilter notifyfilter = make (notifyfilter )
31
+ notifyContainerFilter mapstringslice = make (mapstringslice )
32
32
onlyExposed bool
33
33
onlyPublished bool
34
34
includeStopped bool
@@ -53,13 +53,15 @@ func (strings *stringslice) Set(value string) error {
53
53
return nil
54
54
}
55
55
56
- func (filter * notifyfilter ) String () string {
56
+ func (filter * mapstringslice ) String () string {
57
57
return "[string][]string"
58
58
}
59
59
60
- func (filter * notifyfilter ) Set (value string ) error {
61
- name , value , _ := strings .Cut (value , "=" )
62
- (* filter )[name ] = append ((* filter )[name ], value )
60
+ func (filter * mapstringslice ) Set (value string ) error {
61
+ name , value , found := strings .Cut (value , "=" )
62
+ if found {
63
+ (* filter )[name ] = append ((* filter )[name ], value )
64
+ }
63
65
return nil
64
66
}
65
67
You can’t perform that action at this time.
0 commit comments