Skip to content

Commit 8ab36b1

Browse files
committed
👌IMPROVE: depreciation
1 parent 1ce586e commit 8ab36b1

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎utils/getEmail.js‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ module.exports = async () => {
1717
io.write(cyan("> Enter GitHub Username"));
1818
const URL = await io.read();
1919
await axios
20-
.get(
21-
`https://api.github.com/users/${URL}/events/public?access_token=${headers.Authorization}`,
22-
{
23-
headers: headers,
24-
}
25-
)
20+
.get(`https://api.github.com/users/${URL}/events/public`, {
21+
headers: headers,
22+
})
2623
.then((res) => {
2724
for (let i = 0; i < res.data.length; i++) {
2825
if (res.data[i].type === "PushEvent") {

0 commit comments

Comments
 (0)