Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: add encoding_type variable in WritePrivateKey #34181

Closed
wants to merge 1 commit into from

Commits on Jul 3, 2020

  1. 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.
    danbev committed Jul 3, 2020
    Copy the full SHA
    46286d9 View commit details
    Browse the repository at this point in the history