Skip to content

Commit 4d6efbc

Browse files
m1rmjelly
authored andcommitted
chore: simplify code as loop already checks
1 parent df2f52d commit 4d6efbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

releng/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def default(self, obj):
4545
if isinstance(obj, Release):
4646
data = {attr: getattr(obj, attr) or None
4747
for attr in self.release_attributes}
48-
data['pgp_fingerprint'] = obj.pgp_key or None
48+
data['pgp_fingerprint'] = obj.pgp_key
4949
data['available'] = obj.available
5050
data['iso_url'] = '/' + obj.iso_url()
5151
data['magnet_uri'] = obj.magnet_uri()

0 commit comments

Comments
 (0)