Skip to content

WIP fix: before/after encode functionality#9

Open
zetxx wants to merge 7 commits intomasterfrom
beforeAfterEncode
Open

WIP fix: before/after encode functionality#9
zetxx wants to merge 7 commits intomasterfrom
beforeAfterEncode

Conversation

@zetxx
Copy link
Copy Markdown

@zetxx zetxx commented Feb 23, 2018

No description provided.

@zetxx
Copy link
Copy Markdown
Author

zetxx commented Feb 23, 2018

@zetxx zetxx changed the title fix: before/after encode functionality WIP fix: before/after encode functionality Feb 26, 2018
(encodedPacketLen > 1 && encodePacket[encodedPacketLen - 1]) || {},
{request: encodedPacketLen > 1 && encodePacket[0]}
);
var $meta;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't this be var $meta={}?

port.js Outdated
return encodePacket;
}
return ef.reduce((p, f) => {
return p.then((p) => (f(p, $meta, context)));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why so many brackets?
This can be simple p => f(p, $meta, context)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

clojure ...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

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