Skip to content

Commit

Permalink
fix(files): CR: add explicit comparison to None
Browse files Browse the repository at this point in the history
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
  • Loading branch information
peteraisher and nejch committed Jul 5, 2024
1 parent f316b46 commit 51d8f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/v4/objects/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def raw(
"""
file_path = utils.EncodedId(file_path)
path = f"{self.path}/{file_path}/raw"
if ref:
if ref is not None:
query_data = {"ref": ref}
else:
query_data = None
Expand Down

0 comments on commit 51d8f88

Please sign in to comment.