Code cleanup

This commit is contained in:
2023-03-28 10:28:15 +02:00
parent cd69c18f56
commit b71c11249d

View File

@@ -46,14 +46,13 @@ namespace Password_Generator
CreateNoWindow = true
}
};
proc.Start();
StringBuilder builder = new StringBuilder();
StringBuilder builder = new StringBuilder();
while (!proc.StandardOutput.EndOfStream)
{
builder.Append(proc.StandardOutput.ReadLine());
return builder.ToString();
builder.Append(proc.StandardOutput.ReadLine());
return builder.ToString();
}
}
catch (Exception ex)
@@ -61,7 +60,6 @@ namespace Password_Generator
MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return null;
}
}
}
}