You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Tools: Add eslint rule prefer-await-to-then
This commit is contained in:
@@ -880,6 +880,7 @@ export default class BaseApplication {
|
||||
if (!Setting.value('api.token')) {
|
||||
void EncryptionService.instance()
|
||||
.generateApiToken()
|
||||
// eslint-disable-next-line promise/prefer-await-to-then -- Old code before rule was applied
|
||||
.then((token: string) => {
|
||||
Setting.setValue('api.token', token);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user