Skip to content

Commit c1f082e

Browse files
committed
[Refactor] remove redundant variable
1 parent 79ba755 commit c1f082e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ var isArgs = require('./isArguments');
66
var origKeys = Object.keys;
77
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');
88

9-
var originalKeys = Object.keys;
10-
119
keysShim.shim = function shimObjectKeys() {
1210
if (Object.keys) {
1311
var keysWorksWithArguments = (function () {
@@ -18,9 +16,9 @@ keysShim.shim = function shimObjectKeys() {
1816
if (!keysWorksWithArguments) {
1917
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
2018
if (isArgs(object)) {
21-
return originalKeys(slice.call(object));
19+
return origKeys(slice.call(object));
2220
}
23-
return originalKeys(object);
21+
return origKeys(object);
2422
};
2523
}
2624
} else {

0 commit comments

Comments
 (0)