Skip to content

Commit

Permalink
refactor: autofix issues in 1 file
Browse files Browse the repository at this point in the history
Resolved issues in Commands/Modules/VideoUtils.cs with DeepSource Autofix
  • Loading branch information
deepsource-autofix[bot] authored Jun 16, 2024
1 parent 40ebe8a commit 1b2a370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Modules/VideoUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public async Task TrimVideoAsync(
TimeSpan trimStart;
TimeSpan trimEnd;
try {
if (trimStartString != "") // Avoid invalid format exceptions
if (!string.IsNullOrEmpty(trimStartString)) // Avoid invalid format exceptions
trimStart = TimeSpanFromHMS(trimStartString);
else
trimStart = TimeSpan.Zero;

if (trimEndString != "") // Avoid invalid format exceptions
if (!string.IsNullOrEmpty(trimEndString)) // Avoid invalid format exceptions
trimEnd = TimeSpanFromHMS(trimEndString);
else
trimEnd = TimeSpan.Zero;
Expand Down

0 comments on commit 1b2a370

Please sign in to comment.