-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add common Ranking protocol #19
Conversation
Tested on both Ultimate NES Remix and DKC:TF without issues
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.
Dani got most of the stuff I had to say already
ranking/get_ranking.go
Outdated
rmcResponse.SetError(nex.Errors.Ranking.NotFound) | ||
} | ||
|
||
if err == nil && totalCount != 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.
With Dani's suggestion to change lines 25 and 29 into returns, this check would no longer be needed so long as the check on line 28 is split into 2 checks
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.
I'm a bit confused by "so long as the check on line 28 is split into 2 checks" :p
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.
some minor format changes, otherwise looks good. I will wait for Jon's final review before merging
LGTM 👍 |
Tested on both Ultimate NES Remix and DKC:TF without issues