chore(types): remove unnecessary type assertion (#3724)

This commit is contained in:
Yunfei He 2021-05-13 05:47:52 +08:00 committed by GitHub
parent 9b160b9405
commit 49fd1696c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,11 +103,7 @@ function createGetter(isReadonly = false, shallow = false) {
const res = Reflect.get(target, key, receiver)
if (
isSymbol(key)
? builtInSymbols.has(key as symbol)
: isNonTrackableKeys(key)
) {
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
return res
}