lint fixes
Some checks failed
Continuous Integration / Code Formatting (pull_request) Successful in 27s
Continuous Integration / Code Quality Check (pull_request) Successful in 29s
Continuous Integration / Test Execution (pull_request) Failing after 33s
Continuous Integration / CI Summary (pull_request) Failing after 5s
Some checks failed
Continuous Integration / Code Formatting (pull_request) Successful in 27s
Continuous Integration / Code Quality Check (pull_request) Successful in 29s
Continuous Integration / Test Execution (pull_request) Failing after 33s
Continuous Integration / CI Summary (pull_request) Failing after 5s
This commit is contained in:
@@ -150,14 +150,12 @@ func _normalize_value_for_checksum(value) -> String:
|
||||
"""
|
||||
if value == null:
|
||||
return "null"
|
||||
elif value is bool:
|
||||
if value is bool:
|
||||
return str(value)
|
||||
elif value is int or value is float:
|
||||
if value is int or value is float:
|
||||
# Convert all numeric values to integers if they are whole numbers
|
||||
# This prevents float/int type conversion issues after JSON serialization
|
||||
if value is float and value == floor(value):
|
||||
return str(int(value))
|
||||
else:
|
||||
return str(value)
|
||||
else:
|
||||
return str(value)
|
||||
return str(value)
|
||||
|
||||
Reference in New Issue
Block a user