Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: removed min function and adopted go standard min #34423

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions internal/dag/tarjan.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ func stronglyConnected(acct *sccAcct, g *Graph, v Vertex) int {
return minIdx
}

func min(a, b int) int {
if a <= b {
return a
}
return b
}

// sccAcct is used ot pass around accounting information for
// the StronglyConnectedComponents algorithm
type sccAcct struct {
Expand Down