Commit 7b51269
committed
Remove dead None check in uinput.set_position
position() is annotated to return Tuple[int, int] and never None, so
the guard always evaluated false (Sonar pythonbugs:S2583). Drop the
check and unpack directly.1 parent 656458f commit 7b51269
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments