Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Oct 3, 2024
1 parent 708cdcd commit 2ef9500
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const typescriptEslintCustomRules = {
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
},
],
'@typescript-eslint/consistent-type-imports': [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
} from '@/features/core/index.js';
import {
AudioPlayerStatus,
StreamType,
createAudioPlayer,
createAudioResource,
entersState,
isNil,
StreamType,
} from '@/features/library/index.js';
import { LogicException } from '@/features/others/Error/LogicException.js';

Expand Down Expand Up @@ -58,7 +58,7 @@ export class YouTube extends CommandBase {
);
if (ytdl.validateURL(url)) return url;
else throw new Error('Invalid URL');
} catch (error) {
} catch (_) {
return;
}
})();
Expand Down
4 changes: 2 additions & 2 deletions src/features/core/internal/Client/internal/Client.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Client extends DiscordJsClient {
try {
this.login(this.#config.DISCORD_APP_TOKEN);
} catch (error) {
this.log(chalk.red('Failed to fetch the account'));
this.log(chalk.red(`Failed to fetch the account: ${error}`));
exit(1);
}

Expand Down Expand Up @@ -104,7 +104,7 @@ export class Client extends DiscordJsClient {
});
return true;
} catch (error) {
throw new Error('Failed to install commands');
throw new Error(`Failed to install commands: ${error}`);
}
}

Expand Down

0 comments on commit 2ef9500

Please sign in to comment.