mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] coding style in return statement
This commit is contained in:
@@ -32,7 +32,7 @@ except:
|
|||||||
def float_or_zero(val):
|
def float_or_zero(val):
|
||||||
""" Conversion function used to manage
|
""" Conversion function used to manage
|
||||||
empty string into float usecase"""
|
empty string into float usecase"""
|
||||||
return val and float(val) or 0.0
|
return float(val) if val else 0.0
|
||||||
|
|
||||||
|
|
||||||
class GenericFileParser(FileParser):
|
class GenericFileParser(FileParser):
|
||||||
|
|||||||
Reference in New Issue
Block a user