Commit 27f6bea
activation: simplify ListenersWithNames
As map lookup returns nil if no key is found, and append will create a
new slice if it's first argument is nil, we can greatly simplify the
loop, as suggested in [1].
[1]: #448 (comment)
Reported-by: Paul Holzinger <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>1 parent e615438 commit 27f6bea
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 48 | + | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
| |||
0 commit comments