Open jfcloutier opened 2 years ago
I'm not sure about this, but is it Enum.reverse here instead of Enum.sort?
No but the code can be simplified to if Enum.empty?(state.pending), do: nil, else: Enum.min(Map.values(state.pending))
if Enum.empty?(state.pending), do: nil, else: Enum.min(Map.values(state.pending))
No but the code can be simplified to
if Enum.empty?(state.pending), do: nil, else: Enum.min(Map.values(state.pending))