aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkgcheck/checks/codingstyle.py')
-rw-r--r--src/pkgcheck/checks/codingstyle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkgcheck/checks/codingstyle.py b/src/pkgcheck/checks/codingstyle.py
index 63704e47..cfc7f8da 100644
--- a/src/pkgcheck/checks/codingstyle.py
+++ b/src/pkgcheck/checks/codingstyle.py
@@ -1252,7 +1252,7 @@ class _UnquotedVariablesCheck(Check):
def _var_needs_quotes(self, pkg, node):
pnode = node.parent
- while pnode != node:
+ while pnode is not None:
if pnode.type in self.node_types_ok:
return False
elif pnode.type == "command":