Skip to content

Commit 5fc17c7

Browse files
committed
1 parent fe799e7 commit 5fc17c7

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

lib/sinon/sandbox.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -158,23 +158,7 @@ function Sandbox() {
158158
}
159159
}
160160

161-
forEach(collection, function (fake) {
162-
if (typeof fake === "function") {
163-
privateResetHistory(fake);
164-
return;
165-
}
166-
167-
const methods = [];
168-
if (fake.get) {
169-
push(methods, fake.get);
170-
}
171-
172-
if (fake.set) {
173-
push(methods, fake.set);
174-
}
175-
176-
forEach(methods, privateResetHistory);
177-
});
161+
forEach(collection, privateResetHistory);
178162
};
179163

180164
sandbox.restore = function restore() {

0 commit comments

Comments
 (0)