diff options
author | Mykola <0xb000@gmail.com> | 2024-06-27 20:01:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 20:01:23 +0300 |
commit | a9bc6cc3b67b10bddc38ab35cf530443e4abf019 (patch) | |
tree | 5ed482efc62f4267d7d76f077668c541da473ff7 | |
parent | 7516508547524c53d99178f26d2df5f0cd6e8396 (diff) | |
download | meson-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.py | 2 |
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] == '"': |