Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 10, 2019
1 parent f5e4374 commit 1a07d11
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = {
isObject,
isPromise,
isReactElement,
isSuspense,
isSuspenseType,
isReactClassComponent,
last
Expand All @@ -34,10 +33,6 @@ function isReactElement(e) {
return isObject(e) && e.$$typeof === REACT_ELEMENT_TYPE;
}

function isSuspense(e) {
return isReactElement(e) && isSuspenseType(e.type);
}

function isSuspenseType(type) {
return type === REACT_SUSPENSE_TYPE;
}
Expand Down

0 comments on commit 1a07d11

Please sign in to comment.