diff --git a/src/utils.js b/src/utils.js index 09cf660..4564ffb 100644 --- a/src/utils.js +++ b/src/utils.js @@ -48,17 +48,11 @@ function fallbackColor(color, fallbackColor) { } function request(data, headers) { - return new Promise((resolve, reject) => { - axios({ - url: "https://api.github.com/graphql", - method: "post", - headers: { - ...headers, - }, - data, - }) - .then((response) => resolve(response)) - .catch((error) => reject(error)); + return axios({ + url: "https://api.github.com/graphql", + method: "post", + headers, + data, }); }