Skip to content

Commit

Permalink
Code readability
Browse files Browse the repository at this point in the history
Angle brackets for one liners
  • Loading branch information
Bobrocket committed Oct 1, 2016
1 parent 608765c commit e9ae271
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions source/Cosmos.Build.Builder/CosmosTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,15 @@ protected int NumProcessesContainingName(string name)
protected bool IsVMWareInstalled()
{
//Check registry keys
if (CheckForInstall("VMware Workstation", false)) return true;
if (CheckForInstall("VMware Player", false)) return true;
if (CheckForInstall("VMwarePlayer_x64", false)) return true;
if (CheckForInstall("VMware Workstation", false)) {
return true;
}
if (CheckForInstall("VMware Player", false)) {
return true;
}
if (CheckForInstall("VMwarePlayer_x64", false)) {
return true;
}

try //Try/catch block since the reg key might not exist, we might not have perms etc.
{
Expand Down

0 comments on commit e9ae271

Please sign in to comment.