Used staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
See #5538
Fixes #4750 Co-authored-by: Ivan Andreev <ivandeex@gmail.com>