From 7d4ef93d3c059606a6b50190959f1c1d71feb488 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 24 Nov 2024 01:13:15 +0300 Subject: [PATCH] Fix pylint warning --- kernel_hardening_checker/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.31.1