Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
k.mesniankin committed Nov 23, 2024
1 parent 98cdef6 commit 3413dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/composers/TorrentsComposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class TorrentsComposer<
const texts = await Promise.all(
files.map((file) => this.formatTorrentFile(ctx, uid, file)),
);
const text = texts.join('\n\n');
const text = texts.join('\n');

try {
await ctx.reply(text, {
Expand Down Expand Up @@ -593,7 +593,7 @@ export class TorrentsComposer<
if (completedTorrents.length > 0) {
const text = completedTorrents
.map((torrent) => this.formatTorrent(chatId, torrent))
.join('\n\n\n');
.join('\n');

try {
await this.bot.api.sendMessage(chatId, text, {
Expand All @@ -613,7 +613,7 @@ export class TorrentsComposer<

const text = pendingTorrents
.map((torrent) => this.formatTorrent(chatId, torrent))
.join('\n\n\n');
.join('\n');

await (message
? this.updateTorrentsMessage(message, text)
Expand Down

0 comments on commit 3413dc3

Please sign in to comment.