Unverified Commit 3e3d908c authored by Daniel Bevenius's avatar Daniel Bevenius Committed by Myles Borins
Browse files

src: add encoding_type variable in WritePrivateKey

This commit adds a local variable named encoding_type which is set to
the value of the Maybe using ToChecked().

The motivation for this is the code for ToChecked() could be executed
multiple times depending on path taken at runtime. I also think this
improves readability, or at least it is as readable as before this
change.

PR-URL: https://github.com/nodejs/node/pull/34181


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent daf2abf3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment