From d08ac57aa6aaff2b3909b8c326dcffdeeb3ed068 Mon Sep 17 00:00:00 2001 From: HEJOK254 <90698026+HEJOK254@users.noreply.github.com> Date: Wed, 19 Jun 2024 03:05:38 +0200 Subject: [PATCH] Remove unused TrimSpan conversion --- Commands/Modules/VideoUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/Modules/VideoUtils.cs b/Commands/Modules/VideoUtils.cs index bf649ce..d2cc612 100644 --- a/Commands/Modules/VideoUtils.cs +++ b/Commands/Modules/VideoUtils.cs @@ -81,7 +81,7 @@ public async Task TrimVideoAsync( } // Process and send video - await FFMpeg.SubVideoAsync(videoInputPath, videoOutputPath, (TimeSpan)trimStart, (TimeSpan)trimEnd); // Need to convert the TimeSpans since the value is nullable + await FFMpeg.SubVideoAsync(videoInputPath, videoOutputPath, trimStart, trimEnd); await FollowupWithFileAsync(videoOutputPath, video.Filename, message, ephemeral: ephemeral); // Clean up