Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 5898261

Browse files
committed
Removing second use of extend
1 parent dd73ab0 commit 5898261

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package-mixins.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var extend = require("extend");
21
var { NativeAppEventEmitter } = require("react-native");
32

43
module.exports = (NativeCodePush) => {
@@ -25,7 +24,7 @@ module.exports = (NativeCodePush) => {
2524
return NativeCodePush.downloadUpdate(this)
2625
.then((downloadedPackage) => {
2726
downloadProgressSubscription && downloadProgressSubscription.remove();
28-
return extend({}, downloadedPackage, local);
27+
return Object.assign({}, downloadedPackage, local);
2928
})
3029
.catch((error) => {
3130
downloadProgressSubscription && downloadProgressSubscription.remove();

0 commit comments

Comments
 (0)