Code cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user