Skip to content

Commit 129e833

Browse files
committed
Call the callback if it doesn't satisfy the if statements (this.options.saveEvents) and (itemsToSet.length > 0)
1 parent 22bdf45 commit 129e833

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/amplitude-client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ AmplitudeClient.prototype._migrateUnsentEvents = function _migrateUnsentEvents(c
258258
}).catch((err) => {
259259
this.options.onError(err);
260260
});
261+
} else {
262+
cb();
261263
}
264+
} else {
265+
cb();
262266
}
263267
}).catch((err) => {
264268
this.options.onError(err);

0 commit comments

Comments
 (0)