Skip to content

Commit

Permalink
chore: use != instead of not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
tromai committed Dec 10, 2024
1 parent 7f9fb29 commit bd5eeaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macaron/artifact/local_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def construct_local_artifact_paths_glob_pattern_maven_purl(maven_purl: PackageUR
>>> construct_local_artifact_paths_glob_pattern_maven_purl(purl)
['com/oracle/macaron/macaron/0.13.0']
"""
if not maven_purl.type == "maven":
if maven_purl.type != "maven":
return None

group = maven_purl.namespace
Expand Down Expand Up @@ -71,7 +71,7 @@ def construct_local_artifact_paths_glob_pattern_pypi_purl(pypi_purl: PackageURL)
>>> construct_local_artifact_paths_glob_pattern_pypi_purl(purl)
['django', 'django-1.11.1.dist-info', 'django-1.11.1.data']
"""
if not pypi_purl.type == "pypi":
if pypi_purl.type != "pypi":
return None

name = pypi_purl.name
Expand Down

0 comments on commit bd5eeaa

Please sign in to comment.