From f09d313e6a95878c3e9be425acd9451ab1e61889 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Tue, 23 Jan 2024 22:41:37 +0900 Subject: [PATCH] use built-in min and max function --- doghouse/server/doghouse.go | 7 ------- service/github/github.go | 7 ------- 2 files changed, 14 deletions(-) diff --git a/doghouse/server/doghouse.go b/doghouse/server/doghouse.go index f91eda7263..893cc4c2ce 100644 --- a/doghouse/server/doghouse.go +++ b/doghouse/server/doghouse.go @@ -387,10 +387,3 @@ func annotationToDiagnostic(a *doghouse.Annotation) *rdf.Diagnostic { OriginalOutput: a.RawMessage, } } - -func min(x, y int) int { - if x > y { - return y - } - return x -} diff --git a/service/github/github.go b/service/github/github.go index 055d70f9de..896ec37208 100644 --- a/service/github/github.go +++ b/service/github/github.go @@ -475,10 +475,3 @@ func getSourceLine(sourceLines map[int]string, line int) (string, error) { } return lineContent, nil } - -func max(x, y int32) int32 { - if x < y { - return y - } - return x -}