Skip to content

Commit

Permalink
fix: removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Jan 18, 2024
1 parent 58aee4e commit 6fd570b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ async function checkConnection(url: string): Promise<any> {
console.log('\nChecking Talawa-API connection....');
let isConnected = false;
await fetch(url)
.then((res) => {
.then(() => {
isConnected = true;
console.log('\nConnection to Talawa-API successful! 🎉');
})
.catch((err) => {
.catch(() => {
console.log(
'\nTalawa-API service is unavailable. Is it running? Check your network connectivity too.'
);
Expand Down

0 comments on commit 6fd570b

Please sign in to comment.