From 090807fbc5d83048e9ebae122df0f3aa8d7fb6bd Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 26 Nov 2024 18:28:48 +0200 Subject: [PATCH] openapi3: simplify by replacing math.Min with min --- openapi3/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openapi3/server.go b/openapi3/server.go index 5a817e51..e438e920 100644 --- a/openapi3/server.go +++ b/openapi3/server.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "math" "net/url" "sort" "strings" @@ -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)