Fix mypy warning in json_dump()
authorAlexander Popov <alex.popov@linux.com>
Sun, 12 May 2024 13:28:03 +0000 (16:28 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 12 May 2024 13:28:03 +0000 (16:28 +0300)
commitdfa658fbd02239fa6481f97e6f81a42db3d9f871
treebf68c31d9435265bc1d6b7ce4c75fc5a5d52d730
parent32db0791105d82fd5703b90385b8ef10c4225fb5
Fix mypy warning in json_dump()

kernel_hardening_checker/engine.py:119: error: "None" has no attribute "startswith"  [attr-defined]

The `json_dump()` function printing the results should not be called
for the OptCheck and ComplexOptCheck objects with empty results.
kernel_hardening_checker/engine.py