Commit cf1fe762 authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by James M Snell
Browse files

lib: improve lazy requires

* internal/errors - assert should already be in place when calling any
  of the message generating functions.
* No lazy load if not necessary.
* Replace function calls with `if`s.

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


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarTimothy Gu <timothygu99@gmail.com>
parent f6c65e6e
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