Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Conversation

@clydin
Copy link
Member

@clydin clydin commented May 11, 2018

No description provided.

@clydin clydin requested a review from filipesilva as a code owner May 11, 2018 19:50
filipesilva
filipesilva previously approved these changes May 11, 2018
filipesilva
filipesilva previously approved these changes May 12, 2018
const c0 = entry.content.readUInt8(0, true);
const c1 = entry.content.readUInt8(1, true);
const c2 = entry.content.readUInt8(2, true);
const c0 = entry.content.length > 0 && entry.content[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

readUInt8 already does that check. What are you trying to fix?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh lovely, they removed it in Node 10...

Could you still use readUInt8 please? It's clearer, as Buffer might not be an UInt8Array

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@hansl hansl merged commit c2d39ae into angular:master May 16, 2018
@clydin clydin deleted the ci-updates branch May 16, 2018 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

5 participants