diff --git a/pylint/checkers/logging.py b/pylint/checkers/logging.py index d057c78ecb..c18cea8617 100644 --- a/pylint/checkers/logging.py +++ b/pylint/checkers/logging.py @@ -326,10 +326,6 @@ def _check_format_string(self, node: nodes.Call, format_arg: Literal[0, 1]) -> N format_arg: Index of the format string in the node arguments. """ num_args = _count_supplied_tokens(node.args[format_arg + 1 :]) - if not num_args: - # If no args were supplied the string is not interpolated and can contain - # formatting characters - it's used verbatim. Don't check any further. - return format_string = node.args[format_arg].value required_num_args = 0