Commit 7aa72b4
ci: refactor conditional logic in sync_io.rs
Replace nested if-else with match expression for improved readability when handling
file stat operations based on no_open flag and handle availability.
The change simplifies the control flow by using pattern matching to handle the
four possible combinations of no_open state and handle presence in a single
expression.
Signed-off-by: Peng Tao <bergwolf@hyper.sh>1 parent 95c4fff commit 7aa72b4
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments