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

このコミットが含まれているのは:
Henry Jameson 2022-07-31 13:18:11 +03:00
コミット bd5d5c9df7
2個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -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 {

ファイルの表示

@ -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 = []