Commit e0fe794
Remove unnecessary null check in WebSocketServerExtensionHandler (#16201)
Motivation:
`WebSocketExtensionUtil.computeMergeExtensionsHeaderValue` always
returns `StringBuilder.toString()`, which can't be null.
Modification:
Remove unnecessary null check in WebSocketServerExtensionHandler +
cleanup
Result:
No more unnecessary check + small cleanup.
Co-authored-by: Norman Maurer <[email protected]>1 parent 1b0636b commit e0fe794
2 files changed
Lines changed: 4 additions & 7 deletions
File tree
- codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | | - | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 237 | + | |
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
| |||
0 commit comments