Skip to content

Commit

Permalink
Follow an IDE suggestion to simplify object instantiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
giawa committed Mar 26, 2017
1 parent 3162d6c commit e7ed886
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions OpenGL.Platform/Compatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ public static bool IsWindows()
/// </summary>
private static string DetectUnixType()
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = "-s";
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.UseShellExecute = false;

ProcessStartInfo startInfo = new ProcessStartInfo()
{
Arguments = "-s",
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false
};
string[] unamePath = new string[] { "uname", "bin/uname", "/usr/bin/uname" };

for (int i = 0; i < unamePath.Length; i++)
Expand Down

0 comments on commit e7ed886

Please sign in to comment.