Use ?. where it represents the intended semantics (#11512)
This commit is contained in:
@@ -112,7 +112,7 @@ function placeholderVisitorHandler(
|
||||
state.isLegacyRef.value &&
|
||||
(state.placeholderPattern === false ||
|
||||
!(state.placeholderPattern || PATTERN).test(name)) &&
|
||||
(!state.placeholderWhitelist || !state.placeholderWhitelist.has(name))
|
||||
!state.placeholderWhitelist?.has(name)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user