Skip to content

lib: remove unnecesary else block#32644

Closed
ddazal wants to merge 1 commit intonodejs:masterfrom
ddazal:ddazal/child-process-serialization-early-return
Closed

lib: remove unnecesary else block#32644
ddazal wants to merge 1 commit intonodejs:masterfrom
ddazal:ddazal/child-process-serialization-early-return

Conversation

@ddazal
Copy link
Contributor

@ddazal ddazal commented Apr 3, 2020

The if statement inside the _writeHostObject function returns an expression which makes the else block unnecessary

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. child_process Issues and PRs related to the child_process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants