Skip to content

Commit

Permalink
Merge pull request #7 from Pixee-Bot-Python/pixeebot/drip-2024-04-12-…
Browse files Browse the repository at this point in the history
…pixee-python/combine-startswith-endswith

Simplify Boolean Expressions Using `startswith` and `endswith`
  • Loading branch information
01Joseph-Hwang10 authored Apr 20, 2024
2 parents b46c965 + 3f52a76 commit 72b67a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jtd_codebuild/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def file_is_yaml(file: str) -> bool:
Returns:
True if the file is a YAML file, False otherwise.
"""
return file.endswith(".yaml") or file.endswith(".yml")
return file.endswith((".yaml", ".yml"))


def file_is_json(file: str) -> bool:
Expand Down

0 comments on commit 72b67a9

Please sign in to comment.