Skip to content
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

Small code cleanup #107

Merged
merged 6 commits into from
Jan 8, 2019
Merged

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Dec 27, 2018

I have been a user of this project for a while and I just started taking a look at the code. I noticed a few unused things, and functions that could be simplified a bit.

Each commit is a distinct small cleanup with a commit message that should hopefully explain it. If you prefer I would be happy to drop one or more of the commits, or squash the commits to a single commit.

Formatted code only needs to be cast to a string in one place. Other uses
can use the byte array.
This field is only used in one function which can accept the value as
an argument
This condition is already checked 6 lines above in the same scope
Use an early return instead of variable to make hasDuplicateAliases
easier to read.
@joefitzgerald
Copy link
Collaborator

LGTM 👍

@joefitzgerald joefitzgerald merged commit c23746c into maxbrunsfeld:master Jan 8, 2019
@dnephin dnephin deleted the small-fixes branch January 8, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants