Bug 1754310 - Do not use clearPending() before it is declared. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D138216 --HG-- extra : amend_source : a803e9978ea4036999ee98a589ffa20adbaf6b4e
This commit is contained in:
Родитель
3b9b2ee082
Коммит
f8e907c72d
|
@ -281,15 +281,15 @@ calCachedCalendar.prototype = {
|
|||
return this.mPendingSync;
|
||||
},
|
||||
async _doSynchronize() {
|
||||
let clearPending = () => {
|
||||
this.mPendingSync = null;
|
||||
};
|
||||
|
||||
if (this.getProperty("disabled")) {
|
||||
clearPending();
|
||||
return;
|
||||
}
|
||||
|
||||
let clearPending = () => {
|
||||
this.mPendingSync = null;
|
||||
};
|
||||
|
||||
if (this.offline) {
|
||||
clearPending();
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче