Skip to content

Commit 51d8f88

Browse files
peteraishernejch
andcommitted
fix(files): CR: add explicit comparison to None
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
1 parent f316b46 commit 51d8f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/objects/files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def raw(
267267
"""
268268
file_path = utils.EncodedId(file_path)
269269
path = f"{self.path}/{file_path}/raw"
270-
if ref:
270+
if ref is not None:
271271
query_data = {"ref": ref}
272272
else:
273273
query_data = None

0 commit comments

Comments
 (0)