Skip to content

Commit 1ce586e

Browse files
committed
šŸ‘ŒIMPROVE: remove depreciation
1 parent 3f6a7a5 commit 1ce586e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ā€Žutils/getStargazer.jsā€Ž

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ module.exports = async () => {
2121
const repo = await io.read();
2222

2323
await axios
24-
.get(
25-
`https://api.github.com/repos/${username}/${repo}?access_token=${headers.Authorization}`,
26-
{
27-
headers: headers,
28-
}
29-
)
24+
.get(`https://api.github.com/repos/${username}/${repo}`, {
25+
headers: headers,
26+
})
3027
.then((res) => {
3128
const name = "ā­ļø Stars";
3229
const data = res.data.stargazers_count;

0 commit comments

Comments
Ā (0)