west: build.py: Remove len() from conditional to fix pylint warning
Non-empty sequences are truthy in Python, so len() can be skipped. Fixing pylint warnings for a CI check. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
751ee21e08
commit
5d307c98fe
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Build(Forceable):
|
||||||
# passed on to CMake
|
# passed on to CMake
|
||||||
if remainder[0] == _ARG_SEPARATOR:
|
if remainder[0] == _ARG_SEPARATOR:
|
||||||
remainder = remainder[1:]
|
remainder = remainder[1:]
|
||||||
if len(remainder):
|
if remainder:
|
||||||
self.args.cmake_opts = remainder
|
self.args.cmake_opts = remainder
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue