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) { function request(data, headers) {
return new Promise((resolve, reject) => { return axios({
axios({ url: "https://api.github.com/graphql",
url: "https://api.github.com/graphql", method: "post",
method: "post", headers,
headers: { data,
...headers,
},
data,
})
.then((response) => resolve(response))
.catch((error) => reject(error));
}); });
} }