Unverified Commit 817f736b authored by Anurag Hazra's avatar Anurag Hazra Committed by GitHub
Browse files

Merge pull request #61 from JounQin/patch-1

chore: remove redundant codes
parents 987fb0c3 95f1233a
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -48,17 +48,11 @@ function fallbackColor(color, fallbackColor) {
}

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