"deal" with async promise executor, should be fine in these specific cases

This commit is contained in:
Henry Jameson 2022-07-31 13:18:11 +03:00
parent ee066c4436
commit bd5d5c9df7
2 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,7 @@ const setConfig = async ({ store }) => {
}
const checkOAuthToken = async ({ store }) => {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
if (store.getters.getUserToken()) {
try {

View File

@ -343,6 +343,7 @@ const fetchFriends = ({ id, maxId, sinceId, limit = 20, credentials }) => {
}
const exportFriends = ({ id, credentials }) => {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
try {
let friends = []