aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykola <0xb000@gmail.com>2024-06-27 20:01:23 +0300
committerGitHub <noreply@github.com>2024-06-27 20:01:23 +0300
commita9bc6cc3b67b10bddc38ab35cf530443e4abf019 (patch)
tree5ed482efc62f4267d7d76f077668c541da473ff7
parent7516508547524c53d99178f26d2df5f0cd6e8396 (diff)
downloadmeson-a9bc6cc3b67b10bddc38ab35cf530443e4abf019.zip
meson-a9bc6cc3b67b10bddc38ab35cf530443e4abf019.tar.gz
meson-a9bc6cc3b67b10bddc38ab35cf530443e4abf019.tar.bz2
Change empty string check approach
Review suggestion Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--mesonbuild/backend/xcodebackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 66d42b3..14d2443 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -154,7 +154,7 @@ class PbxDictItem:
def quote_value(self, value: str) -> str:
quoted = f'"{value}"'
- if len(value) == 0:
+ if not value:
return quoted
if set(' +@').isdisjoint(value) or value[0] == '"':