Repository navigation
Commit f9a7a78
authored
refactor: reuse standard response methods for kicks (#1701)
Reuse `SlackResponse.Warn` and `SlackResponse.Err` from the kick
response through a value conversion, removing 17 lines of duplicated
logic. Both structs have the same fields; their differing JSON tags do
not affect the conversion.
Preserve the custom kick-response decoder, warning and error details,
and the public API.
Validation: affected kick, response, warning, and scope-diagnostic tests
pass, along with formatting, lint, module, and whitespace checks.1 parent c08d142 commit f9a7a78
1 file changed
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 218 | + | |
225 | 219 | | |
226 | 220 | | |
227 | 221 | | |
228 | 222 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 223 | + | |
241 | 224 | | |
242 | 225 | | |
243 | 226 | | |
| |||
0 commit comments