From a9bc6cc3b67b10bddc38ab35cf530443e4abf019 Mon Sep 17 00:00:00 2001 From: Mykola <0xb000@gmail.com> Date: Thu, 27 Jun 2024 20:01:23 +0300 Subject: Change empty string check approach Review suggestion Co-authored-by: Dylan Baker --- mesonbuild/backend/xcodebackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] == '"': -- cgit v1.1