Skip to content

Commit

Permalink
Drop an unneeded list(), since split() returns a list anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
a13xp0p0v committed Jan 22, 2025
1 parent b1deb5d commit 660daf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_hardening_checker/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def check(self) -> None:
assert(self.state.startswith('"') and self.state.endswith('"')), \
f'not a list enclosed in double quotes: {self.name}={self.state}'
val = self.expected.strip('*')
val_list = list(self.state.strip('"').split(','))
val_list = self.state.strip('"').split(',')
if val in val_list:
self.result = f'OK: in {self.state}'
else:
Expand Down

0 comments on commit 660daf6

Please sign in to comment.