🎨 Code review

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Manuel 2022-12-18 19:21:21 +01:00 committed by GitHub
parent 3fd94e590d
commit 576d97ed82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export class DiscordMessageService {
text: `${date}`, text: `${date}`,
}); });
if (description !== undefined && description.length > 0) { if (!description && description.length >= 1) {
embedBuilder = embedBuilder.setDescription(description); embedBuilder = embedBuilder.setDescription(description);
} }

View File

@ -56,7 +56,7 @@ export class JellyfinService {
} }
destroy() { destroy() {
if (this.api === undefined) { if (!this.api) {
this.logger.warn( this.logger.warn(
'Jellyfin Api Client was unexpectitly undefined. Graceful destroy has failed', 'Jellyfin Api Client was unexpectitly undefined. Graceful destroy has failed',
); );

View File

@ -64,7 +64,7 @@ export class PlayItemCommand
), ),
); );
if (parsedItems.length < 1) { if (parsedItems.length === 0) {
return { return {
embeds: [ embeds: [
this.discordMessageService.buildErrorMessage({ this.discordMessageService.buildErrorMessage({