@@ -103,13 +103,13 @@ def get_status(self, instance):
103103 def get_product_id (self , instance ):
104104 """Return the product version text_id"""
105105 product = self ._get_product (instance )
106- if product : # noqa: RET503
106+ if product :
107107 return product .purchasable_object .readable_id
108108
109109 def get_price (self , instance ):
110110 """Get the product version price"""
111111 product = self ._get_product (instance )
112- if product : # noqa: RET503
112+ if product :
113113 return format_decimal (product .price )
114114
115115 class Meta :
@@ -182,13 +182,13 @@ def get_dealstage(self, instance):
182182
183183 def get_closedate (self , instance ):
184184 """Return the updated_on date (as a timestamp in milliseconds) if fulfilled"""
185- if instance .state == models .OrderStatus .FULFILLED : # noqa: RET503
185+ if instance .state == models .OrderStatus .FULFILLED :
186186 return int (instance .updated_on .timestamp () * 1000 )
187187
188188 def get_discount_type (self , instance ):
189189 """Get the discount type of the applied coupon"""
190190 discount = self ._get_discount (instance )
191- if discount : # noqa: RET503
191+ if discount :
192192 return discount .discount_type
193193
194194 def get_amount (self , instance ):
@@ -230,7 +230,7 @@ def get_discount_percent(self, instance):
230230 def get_coupon_code (self , instance ):
231231 """Get the coupon code used for the order if any"""
232232 discount = self ._get_discount (instance )
233- if discount : # noqa: RET503
233+ if discount :
234234 return discount .discount_code
235235
236236 class Meta :
0 commit comments