-
Notifications
You must be signed in to change notification settings - Fork 0
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 implementation #10
Conversation
Signed-off-by: Daichi Sakaue <[email protected]>
Co-authored-by: Tomoki Sugiura <[email protected]>
Signed-off-by: Daichi Sakaue <[email protected]>
Co-authored-by: Tomoki Sugiura <[email protected]>
Signed-off-by: Daichi Sakaue <[email protected]>
Signed-off-by: Daichi Sakaue <[email protected]>
Signed-off-by: Daichi Sakaue <[email protected]>
ret := strings.Compare(x.Direction, y.Direction) | ||
if ret == 0 { | ||
ret = strings.Compare(x.Kind, y.Kind) | ||
} | ||
if ret == 0 { | ||
ret = strings.Compare(x.Namespace, y.Namespace) | ||
} | ||
if ret == 0 { | ||
ret = strings.Compare(x.Name, y.Name) | ||
} | ||
return ret < 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if the first ret
is negative, it will be overwritten by other string.Compare()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chez-shanpu
It should be blocked by if ret == 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yokaze I was mistaken. thank you :) lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR:
no-header
option for table layoutnpv list