From: Alexander Popov Date: Sat, 23 Nov 2024 22:13:15 +0000 (+0300) Subject: Fix pylint warning X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7d4ef93d3c059606a6b50190959f1c1d71feb488;p=kconfig-hardened-check.git Fix pylint warning --- diff --git a/kernel_hardening_checker/engine.py b/kernel_hardening_checker/engine.py index f0ffdf2..038e45c 100755 --- a/kernel_hardening_checker/engine.py +++ b/kernel_hardening_checker/engine.py @@ -93,7 +93,7 @@ class OptCheck: if self.expected == 'is not off': if self.state == 'off': self.result = 'FAIL: is off' - elif self.state == '0' or self.state == 'is not set': + elif self.state in ('0', 'is not set'): self.result = f'FAIL: is off, "{self.state}"' elif self.state is None: self.result = 'FAIL: is off, not found'