Skip to content

Commit

Permalink
[minor] update accessor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Zaharia committed Dec 2, 2015
1 parent b644dc9 commit 8d53af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function _actualMethodKeys(target) {
return Object.getOwnPropertyNames(target)
.filter(key => {
var propertyDescriptor = Object.getOwnPropertyDescriptor(target, key);
return propertyDescriptor.get == null && propertyDescriptor.set == null;
return !propertyDescriptor.get && !propertyDescriptor.set;
})
.filter(key => typeof target[key] === 'function');
}
Expand Down

0 comments on commit 8d53af2

Please sign in to comment.