Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace template strings with regular string literals #229

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/clients/discord/discord.voice.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class DiscordVoiceService {
changeVolume(volume: number) {
if (!this.audioResource || !this.audioResource.volume) {
this.logger.error(
`Failed to change audio volume, AudioResource or volume was undefined`,
"Failed to change audio volume, AudioResource or volume was undefined",
);
return;
}
Expand Down Expand Up @@ -248,14 +248,14 @@ export class DiscordVoiceService {
private attachEventListenersToAudioPlayer() {
if (!this.voiceConnection) {
this.logger.error(
`Unable to attach listener events, because the VoiceConnection was undefined`,
"Unable to attach listener events, because the VoiceConnection was undefined",
);
return;
}

if (!this.audioPlayer) {
this.logger.error(
`Unable to attach listener events, because the AudioPlayer was undefined`,
"Unable to attach listener events, because the AudioPlayer was undefined",
);
return;
}
Expand All @@ -279,7 +279,7 @@ export class DiscordVoiceService {
this.audioPlayer.on('stateChange', (previousState) => {
if (!this.audioPlayer) {
this.logger.error(
`Unable to process state change from audio player, because the current audio player in the callback was undefined`,
"Unable to process state change from audio player, because the current audio player in the callback was undefined",
);
return;
}
Expand Down Expand Up @@ -333,7 +333,7 @@ export class DiscordVoiceService {

if (!playlist) {
this.logger.error(
`Failed to update ellapsed audio time because playlist was unexpectitly undefined`,
"Failed to update ellapsed audio time because playlist was unexpectitly undefined",
);
return;
}
Expand All @@ -342,7 +342,7 @@ export class DiscordVoiceService {

if (!activeTrack) {
this.logger.error(
`Failed to update ellapsed audio time because active track was unexpectitly undefined`,
"Failed to update ellapsed audio time because active track was unexpectitly undefined",
);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/clients/jellyfin/jellyfin.search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class JellyfinSearchService {

if (!axiosResponse.data.SearchHints) {
this.logger.error(
`Received an unexpected empty list but expected a list of tracks of the album`,
"Received an unexpected empty list but expected a list of tracks of the album",
);
return [];
}
Expand Down Expand Up @@ -227,7 +227,7 @@ export class JellyfinSearchService {

if (!response.data.Items) {
this.logger.error(
`Received empty list of items but expected a random list of tracks`,
"Received empty list of items but expected a random list of tracks",
);
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/playlist/playlist.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class PlaylistCommand {

if (!tempData) {
this.logger.warn(
`Failed to update from interval, because temp data was not found`,
"Failed to update from interval, because temp data was not found",
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/updates/updates.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class UpdatesService {

if (!latestGitHubRelease) {
this.logger.warn(
`Aborting update check because api request failed. Please check your internet connection or disable the check`,
"Aborting update check because api request failed. Please check your internet connection or disable the check",
);
return;
}
Expand Down
Loading