Skip to content

Commit

Permalink
chore(types): remove unnecessary type assertion (#3724)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 authored May 12, 2021
1 parent 9b160b9 commit 49fd169
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 49fd169

Please sign in to comment.