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

chore: es6 base64 parser #75

Merged
merged 2 commits into from
Apr 29, 2020
Merged

chore: es6 base64 parser #75

merged 2 commits into from
Apr 29, 2020

Conversation

grant
Copy link
Member

@grant grant commented Apr 29, 2020

No description provided.

parse(payload) {
let payloadToParse = payload;
if (this.decorator) {
payloadToParse = this.decorator.parse(payload);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM but I don’t think the intermediary payloadToParse variable is really necessary is it? It would work just fine as

payload =  this.decorator.parse(payload);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I wasn't changing any of the code functionality in the PR. Here I just renamed the variable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure - just seems that if the whole file is being changed anyway, why not make this minor optimization. Not a biggie.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just going to focus this PR and other PRs on converting this file to es6 and not changing the functionality. I'd rather do that in a different PR.

@lance
Copy link
Member

lance commented Apr 29, 2020

@grant you should rebase from master to pull in the Travis-CI code coverage fix. That will re-run the tests and you'll see a successful build.

Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
@grant grant changed the title feat: es6 base64 parser chore: es6 base64 parser Apr 29, 2020
@grant grant merged commit d042ef1 into master Apr 29, 2020
@grant grant deleted the grant_base64_parser branch April 29, 2020 20:15
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