Commit 9109fb5
committed
fix(notify): try to unmarshal notify.urls as JSON array
When notify.urls is configured as a JSON array in the config file,
Viper's GetStringSlice may not parse it correctly. This fix attempts
to unmarshal the raw string as JSON first, falling back to the
original behavior if that fails.1 parent df7da88 commit 9109fb5
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
| |||
0 commit comments