Skip to content

Commit 18348d0

Browse files
committed
PIE810 - Call endswith once with a tuple
1 parent 3223cfd commit 18348d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pre_commit_terraform/terraform_docs_replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType:
5959
dirs: list[str] = []
6060
for filename in cast_to(list[str], parsed_cli_args.filenames):
6161
if os.path.realpath(filename) not in dirs and (
62-
filename.endswith('.tf') or filename.endswith('.tfvars')
62+
filename.endswith(('.tf', '.tfvars'))
6363
):
6464
dirs.append(os.path.dirname(filename))
6565

0 commit comments

Comments
 (0)