Skip to content

Commit

Permalink
vs lint lied to me :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Giganticus committed Apr 24, 2023
1 parent 8aae625 commit 444af38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions THP-Converter-CS-CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static class Program

static FileInfo InFile { get; set; }

async static void Main(string[] args)
static void Main(string[] args)
{
for (int i = 0; i < args.Length; i++)
switch (args[i])
Expand Down Expand Up @@ -70,7 +70,7 @@ async static void Main(string[] args)
if (InFile.Extension is ".thp")
{
if (OutFile.Extension is not ".mp4") throw new Exception("Outfile needs to be a mp4 if the Inputfile is a thp.");
await new THP(InFile, OutFile).Convert();
new THP(InFile, OutFile).Convert().GetAwaiter().GetResult();
Console.WriteLine($"Converted {InFile.Name} to {OutFile.Name}.");
} else if (InFile.Extension is ".mp4")
{
Expand Down

0 comments on commit 444af38

Please sign in to comment.