Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Oct 11, 2018
1 parent 65f4ade commit 924549c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/westore/utils/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@ function _diff(current, pre, path, result) {
}

function setResult(result, k, v) {
const t = type(v)
if (t != FUNCTIONTYPE) {
//if (t != OBJECTTYPE && t != ARRAYTYPE) {
if (type(v) != FUNCTIONTYPE) {
result[k] = v
// } else {
// result[k] = JSON.parse(JSON.stringify(v))
// }
}
}

Expand Down

0 comments on commit 924549c

Please sign in to comment.