Removed excessive whitespace

This commit is contained in:
Yan Gauthier 2024-08-15 16:32:12 -04:00
parent 91e8e1e18d
commit 935980568c
2 changed files with 3 additions and 10 deletions

View file

@ -17,13 +17,11 @@ public class VideoTest
{ {
private const int BaseTimeoutMilliseconds = 15_000; private const int BaseTimeoutMilliseconds = 15_000;
private string _segmentPathSource = ""; private string _segmentPathSource = "";
[TestInitialize] [TestInitialize]
public void Setup() public void Setup()
{ {
_segmentPathSource = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}-"); _segmentPathSource = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}-");
} }
[TestCleanup] [TestCleanup]
public void Cleanup() public void Cleanup()
{ {
@ -32,7 +30,6 @@ public void Cleanup()
File.Delete(file); File.Delete(file);
} }
} }
[TestMethod, Timeout(BaseTimeoutMilliseconds)] [TestMethod, Timeout(BaseTimeoutMilliseconds)]
public void Video_ToOGV() public void Video_ToOGV()
{ {

View file

@ -10,12 +10,10 @@ public class OutputSegmentArgument : IOutputArgument
public readonly string SegmentPattern; public readonly string SegmentPattern;
public readonly bool Overwrite; public readonly bool Overwrite;
public readonly SegmentArgumentOptions Options; public readonly SegmentArgumentOptions Options;
public OutputSegmentArgument(SegmentArgument segmentArgument) public OutputSegmentArgument(SegmentArgument segmentArgument)
{ {
SegmentPattern = segmentArgument.SegmentPattern; SegmentPattern = segmentArgument.SegmentPattern;
Overwrite = segmentArgument.Overwrite; Overwrite = segmentArgument.Overwrite;
var segmentArgumentobj = new SegmentArgumentOptions(); var segmentArgumentobj = new SegmentArgumentOptions();
segmentArgument.Options?.Invoke(segmentArgumentobj); segmentArgument.Options?.Invoke(segmentArgumentobj);
Options = segmentArgumentobj; Options = segmentArgumentobj;
@ -29,7 +27,6 @@ public void Pre()
} }
if (Options.Arguments.FirstOrDefault(x => x.Key == "segment_time").Value == "0") if (Options.Arguments.FirstOrDefault(x => x.Key == "segment_time").Value == "0")
{ {
throw new FFMpegException(FFMpegExceptionType.Process, "Parameter SegmentWrap cannot equal to zero"); throw new FFMpegException(FFMpegExceptionType.Process, "Parameter SegmentWrap cannot equal to zero");
} }
@ -40,7 +37,6 @@ public void Post()
} }
public string Text => GetText(); public string Text => GetText();
private string GetText() private string GetText()
{ {
var arguments = Options.Arguments var arguments = Options.Arguments