Merge pull request #61 from JounQin/patch-1

chore: remove redundant codes
This commit is contained in:
Anurag Hazra 2020-07-15 20:37:42 +05:30 committed by GitHub
commit 817f736b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});
}