Commit 91854f9
committed
boot-qemu.py: Eliminate single item container in _get_kernel_ver_tuple()
As pointed out by the refurb rules in ruff.toml:
FURB171 Membership test against single-item container
--> boot-qemu.py:130:12
|
129 | utils.check_cmd(decomp_prog)
130 | if decomp_prog in ('gzip',):
| ^^^^^^^^^^^^^^^^^^^^^^^^
131 | decomp_cmd = [decomp_prog, '-c', '-d', self.kernel]
132 | else:
|
help: Convert to equality test
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent cd00711 commit 91854f9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments