-
Notifications
You must be signed in to change notification settings - Fork 193
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
simplify the if/else logic #179
Conversation
sync with master
sync with master
remove the redundant parentheses & more
sync with master
/run-all-tests |
1 similar comment
/run-all-tests |
pkg/diff/merge.go
Outdated
if strData1 > strData2 { | ||
return false | ||
} | ||
return true | ||
} else { |
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.
recommend usage from golint: if block ends with a return statement, so drop this else and outdent its block
Good job. Rest LGTM |
@amyangfei PTAL |
/run-all-tests |
LGTM |
Thanks @lewgun, @WangXiangUSTC PTAL |
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.
Rest LGTM
refactor to simplify the if/else logic
* sync_diff_inspector: fix a misleading regex example in config.toml (#141) * update pkg about database (#142) * diff: add database name and table name router (#172) * simplify the if/else logic (#179) refactor to simplify the if/else logic * diff: can use multiple columns to split chunks (#130) * simplify the if/else logic (#191)
What problem does this PR solve?
simplify the if/else logic
What is changed and how it works?
refactor to simplify the if/else logic
Check List
Tests
Code changes
Side effects
Related changes