Commit 6ceca63
Simplify redundant if-block (netty#12376)
Motivation:
We can simplify redundant `if-blocks` to make the code look simpler.
Modification:
Replaced `if-block` with simpler `boolean` statements.
Result:
Simpler code1 parent 9b8f817 commit 6ceca63
File tree
4 files changed
+12
-27
lines changed- codec-dns/src/main/java/io/netty/handler/codec/dns
- codec/src/main/java/io/netty/handler/codec
- handler/src/main/java/io/netty/handler/timeout
- microbench/src/main/java/io/netty/microbenchmark/common
4 files changed
+12
-27
lines changedLines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
210 | 208 | | |
211 | | - | |
212 | | - | |
213 | 209 | | |
214 | 210 | | |
215 | 211 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 453 | + | |
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
| |||
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 187 | + | |
| 188 | + | |
191 | 189 | | |
192 | 190 | | |
193 | 191 | | |
| |||
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
208 | 204 | | |
209 | 205 | | |
210 | | - | |
211 | | - | |
212 | 206 | | |
213 | 207 | | |
214 | 208 | | |
| |||
0 commit comments