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:
Ulf Magnusson 2019-09-02 15:35:56 +02:00 committed by Anas Nashif
commit 5d307c98fe

View file

@ -198,7 +198,7 @@ class Build(Forceable):
# passed on to CMake
if remainder[0] == _ARG_SEPARATOR:
remainder = remainder[1:]
if len(remainder):
if remainder:
self.args.cmake_opts = remainder
except IndexError:
return