solve issue discussed [here](https://github.com/github/codeql-coding-standards/pull/39#discussion_r945685947)