Unverified Commit 1a5f6705 authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

tools: fix eslint isRequired

Currently the call can lead to a TypeError with the message:
`Cannot read property 'value' of undefined`.

This fixes it by first checking that the first argument is truthy.

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


Reviewed-By: default avatarAnatoli Papirovski <apapirovski@mac.com>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
parent ba944b16
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