Skip to content

Commit

Permalink
openapi3: simplify by replacing math.Min with min (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Nov 26, 2024
1 parent e230c13 commit 02a0d6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openapi3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"math"
"net/url"
"sort"
"strings"
Expand Down Expand Up @@ -174,7 +173,7 @@ func (server Server) MatchRawURL(input string) ([]string, string, bool) {
} else if ns < 0 {
i = np
} else {
i = int(math.Min(float64(np), float64(ns)))
i = min(np, ns)
}
if i < 0 {
i = len(input)
Expand Down

0 comments on commit 02a0d6f

Please sign in to comment.