Fix callback not calling issue in applicationTokenCredentialsBase.ts
This commit is contained in:
Родитель
299621cdaf
Коммит
43c52f9420
|
@ -78,13 +78,11 @@ export abstract class ApplicationTokenCredentialsBase extends TokenCredentialsBa
|
|||
}
|
||||
|
||||
if (entries && entries.length > 0) {
|
||||
return new Promise(resolve => {
|
||||
return self.tokenCache.remove(entries, (err: Error) => {
|
||||
if (err) {
|
||||
return resolve({ result: false, details: err });
|
||||
}
|
||||
return resolve({ result: true });
|
||||
});
|
||||
return self.tokenCache.remove(entries, (err: Error) => {
|
||||
if (err) {
|
||||
return resolve({ result: false, details: err });
|
||||
}
|
||||
return resolve({ result: true });
|
||||
});
|
||||
} else {
|
||||
return resolve({ result: true });
|
||||
|
|
Загрузка…
Ссылка в новой задаче