dcrdex icon indicating copy to clipboard operation
dcrdex copied to clipboard

refactor: use the built-in max/min to simplify the code

Open todaymoon opened this issue 9 months ago • 1 comments

In Go 1.21, the standard library includes built-in max/min function, which can greatly simplify the code.

todaymoon avatar Mar 26 '25 10:03 todaymoon

Looks good. One place I think the existing code is wrong.

Thanks. Modified.

todaymoon avatar Mar 31 '25 08:03 todaymoon