Skip to content

Commit

Permalink
Fix linting issues jupyterlab#7874
Browse files Browse the repository at this point in the history
  • Loading branch information
selango committed Feb 13, 2020
1 parent c74b22c commit 050d102
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/docmanager-extension/src/index.ts
Expand Up @@ -242,16 +242,16 @@ ${fileTypes}`;
}
});

//callback to registry change that ensures not to invoke reload method when there is already a promise that is pending
// callback to registry change that ensures not to invoke reload method when there is already a promise that is pending
let reloadSettingsRegistry = () => {
let promisePending = false;

return async () => {
if(!promisePending) {
promisePending = true;
await settingRegistry.reload(pluginId);
promisePending = false;
}
if (!promisePending) {
promisePending = true;
await settingRegistry.reload(pluginId);
promisePending = false;
}
};
};

Expand Down

0 comments on commit 050d102

Please sign in to comment.