Fix synchronous nthen callback

pull/1/head
yflory 5 years ago
parent da32864413
commit 1e2b2a27cf

@ -21,7 +21,8 @@ define([
// No version: visible edit // No version: visible edit
// Version 2: encrypted edit links // Version 2: encrypted edit links
SF.checkMigration = function (secondaryKey, proxy, uo, cb) { SF.checkMigration = function (secondaryKey, proxy, uo, _cb) {
var cb = Util.once(Util.mkAsync(_cb));
var drive = proxy.drive || proxy; var drive = proxy.drive || proxy;
// View access: can't migrate // View access: can't migrate
if (!secondaryKey) { return void cb(); } if (!secondaryKey) { return void cb(); }

Loading…
Cancel
Save