fix: fixed TD-01 and TD-25
This commit is contained in:
@@ -66,8 +66,8 @@ defmodule BDS.Maintenance.DiffComputation do
|
||||
end
|
||||
|
||||
def stringify_value(nil), do: ""
|
||||
# Booleans are atoms, so this clause also renders true/false.
|
||||
def stringify_value(value) when is_atom(value), do: Atom.to_string(value)
|
||||
def stringify_value(value) when is_boolean(value), do: to_string(value)
|
||||
def stringify_value(value) when is_integer(value), do: Integer.to_string(value)
|
||||
def stringify_value(value) when is_binary(value), do: value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user