Skip to content

Commit 1cb6204

Browse files
Simplify Boolean Expressions Using startswith and endswith (#8)
Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
1 parent b46c965 commit 1cb6204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jtd_codebuild/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def file_is_yaml(file: str) -> bool:
6363
Returns:
6464
True if the file is a YAML file, False otherwise.
6565
"""
66-
return file.endswith(".yaml") or file.endswith(".yml")
66+
return file.endswith((".yaml", ".yml"))
6767

6868

6969
def file_is_json(file: str) -> bool:

0 commit comments

Comments
 (0)