From 5d307c98fe8e45c3729732f8bd58b8f24073febd Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 2 Sep 2019 15:35:56 +0200 Subject: [PATCH] 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 --- scripts/west_commands/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/west_commands/build.py b/scripts/west_commands/build.py index 4be36a72909..79961120d11 100644 --- a/scripts/west_commands/build.py +++ b/scripts/west_commands/build.py @@ -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