mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 07:18:28 +01:00
utils: removing diff key from result dictionary
This commit is contained in:
committed by
David de la Iglesia Castro
parent
75952c4e36
commit
dfa5f4d9a0
+1
-2
@@ -26,8 +26,7 @@ def _diff_vals(old, new, with_unchanged):
|
||||
res = {"old": old, "new": new}
|
||||
if isinstance(new, (int, float)) and isinstance(old, (int, float)):
|
||||
res["diff"] = new - old
|
||||
elif isinstance(new, str) and isinstance(old, str):
|
||||
res["diff"] = ""
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user