Skip to content

Commit 0c8244f

Browse files
authored
Multiple bug fixes
1 parent b309e69 commit 0c8244f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

HashifyNETCLI/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static void PrintProfiles(Type algorithm)
430430
values.Add(value);
431431
}
432432

433-
if (values.Count > 1)
433+
if (values.Count > 0)
434434
{
435435
Array array;
436436

@@ -924,7 +924,7 @@ public static int Main(string[] args)
924924

925925
byte[] inputArray = (finalizedInput as byte[])!;
926926
Stream inputStream = (finalizedInput as Stream)!;
927-
if (inputArray == null && inputScript == null)
927+
if (inputArray == null && inputStream == null)
928928
{
929929
Logger.Error("Input finalizer script must either return a byte array or a stream.");
930930
return 1;
@@ -1190,7 +1190,6 @@ public static int Main(string[] args)
11901190
{
11911191
if (inputStream != null)
11921192
{
1193-
inputStream.Close();
11941193
inputStream.Dispose();
11951194
inputStream = null!;
11961195
}

0 commit comments

Comments
 (0)