-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cleaned some code #706
Cleaned some code #706
Conversation
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.
Reviewed 3 of 6 files at r1.
Reviewable status: 3 of 6 files reviewed, 2 unresolved discussions (waiting on @marigonzes)
options.go, line 35 at r1 (raw file):
// Directory to store the data in. If it doesn't exist, it will // try to be created for you.
Rephrase this sentence to something like "If it doesn't exist, Badger will try to create it for you". The current phrasing makes it sound like the directory will create itself.
Same for the sentence below.
txn.go, line 624 at r1 (raw file):
err := cb.commit() cb.user(err) case cb.user == nil:
I am not sure if this should be removed but it should be the second case (right below "case cb == nil").
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.
Reviewable status: 3 of 6 files reviewed, 2 unresolved discussions (waiting on @martinmr)
options.go, line 35 at r1 (raw file):
Previously, martinmr (Martin Martinez Rivera) wrote…
// Directory to store the data in. If it doesn't exist, it will // try to be created for you.
Rephrase this sentence to something like "If it doesn't exist, Badger will try to create it for you". The current phrasing makes it sound like the directory will create itself.
Same for the sentence below.
Done.
txn.go, line 624 at r1 (raw file):
Previously, martinmr (Martin Martinez Rivera) wrote…
I am not sure if this should be removed but it should be the second case (right below "case cb == nil").
Done. Initially I removed it, because I noticed it was possible for it to be nil in the lines above. Should have just move it in the first place.
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.
Reviewable status: 3 of 6 files reviewed, all discussions resolved
Approved and merged. Thanks for your PR. |
Thanks for your PR. But, why delete the sketch? Wasn't hurting anybody. |
@manishrjain, now I feel bad for the little badger 😢 |
Made some changes to improve the quality of the code and comments:
This change is