Skip to content

Commit

Permalink
Switch from ?. to &&
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jul 3, 2024
1 parent 7a466e8 commit d76f47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/config-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class ConfigValidator {
const validateRule = ruleValidators.get(rule);

if (validateRule) {
const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);
const mergedOptions = deepMergeArrays(rule.meta && rule.meta.defaultOptions, localOptions);

validateRule(mergedOptions);

Expand Down

0 comments on commit d76f47e

Please sign in to comment.