Skip to content

Commit

Permalink
return https.get(endpoint)
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Sep 7, 2024
1 parent 8ec303e commit 75b2e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NekosiaAPI {

async makeHttpRequest(endpoint) {
try {
return await https.get(endpoint);
return https.get(endpoint);
} catch (err) {
console.error(`HTTP request failed for endpoint ${endpoint}: ${err.message}`);
throw err;
Expand Down

0 comments on commit 75b2e6c

Please sign in to comment.