Skip to content

Commit

Permalink
Optional Comparison: Minor improvement (decouple code)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jan 6, 2025
1 parent df2d95b commit 36b7b07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ partial class Optional
internal static int Compare<T>(Optional<T> left, Optional<T> right)
where T : IComparable<T>
=>
left.CompareTo(right);
left.InternalCompareTo(right, Comparer<T>.Default);

// TODO: Add the tests and open the method
internal static IComparer<Optional<T>> CreateComparer<T>(IComparer<T> comparer)
Expand Down

0 comments on commit 36b7b07

Please sign in to comment.