fix golint issues in core/mathx (#498)

This commit is contained in:
Kevin Wan
2021-02-21 20:47:01 +08:00
committed by GitHub
parent 334ee4213f
commit 8872d7cbd3
4 changed files with 10 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package mathx
// MaxInt returns the larger one of a and b.
func MaxInt(a, b int) int {
if a > b {
return a
@@ -8,6 +9,7 @@ func MaxInt(a, b int) int {
return b
}
// MinInt returns the smaller one of a and b.
func MinInt(a, b int) int {
if a < b {
return a