Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Represent empty name as "" to match RPC v1#486

Merged
tbfleming merged 1 commit intodevelopfrom
empty-name
Feb 5, 2019
Merged

Represent empty name as "" to match RPC v1#486
tbfleming merged 1 commit intodevelopfrom
empty-name

Conversation

@tbfleming
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@c0d3ster c0d3ster left a comment

Choose a reason for hiding this comment

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

Only one comment

},
deserialize(buffer: SerialBuffer, state?: SerializerState) {
if (state.options.bytesAsUint8Array) {
if (state && state.options.bytesAsUint8Array) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is there a possibility that state could have an options object without a bytesAsUint8Array? If ever that could happen, we should add a check for state.options as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

bytesAsUint8Array is a flag. If it's missing then this treats it as false.

@tbfleming tbfleming merged commit c04336f into develop Feb 5, 2019
@gleehokie gleehokie deleted the empty-name branch June 24, 2020 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants