Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tomoki Sugiura <[email protected]>
  • Loading branch information
yokaze and chez-shanpu authored Oct 16, 2024
1 parent 6b25948 commit eb5ba6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type derivedFromEntry struct {
Name string `json:"name"`
}

func compareDerivedFromEntry(x, y *derivedFromEntry) bool {
if x.Direction != y.Direction {
return strings.Compare(x.Direction, y.Direction) < 0
func lessDerivedFromEntry(x, y *derivedFromEntry) bool {
if strings.Compare(x.Direction, y.Direction) < 0 {
return true
}
if x.Kind != y.Kind {
return strings.Compare(x.Kind, y.Kind) < 0
Expand Down

0 comments on commit eb5ba6d

Please sign in to comment.