Skip to content

Commit

Permalink
use built-in min and max function
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jan 23, 2024
1 parent 553583e commit f09d313
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions doghouse/server/doghouse.go
Expand Up @@ -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
}
7 changes: 0 additions & 7 deletions service/github/github.go
Expand Up @@ -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
}

0 comments on commit f09d313

Please sign in to comment.