Skip to content

Commit 57df790

Browse files
authored
Remove unnecessary await
1 parent f748070 commit 57df790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/discord.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ router.get('/callback', catchAsyncErrors(async (req, res) => {
5050
const ip = req.headers['cf-connecting-ip'] || ((req.headers['x-forwarded-for'] || '').split(', ')[0]) || (req.connection.remoteAddress || req.connection.localAddress).match('[0-9]+.[0-9].+[0-9]+.[0-9]+$')[0];
5151
const url = `http://ip-api.com/json/${ip}?fields=66846719&lang=${config.locale || 'en'}`;
5252
const geoResponse = await axios.get(url);
53-
const geo = await geoResponse.data;
53+
const geo = geoResponse.data;
5454
const embed = {
5555
color: 0xFF0000,
5656
title: 'Failure',

0 commit comments

Comments
 (0)