From e9ae271513b63622b0d7e636a08305429c496608 Mon Sep 17 00:00:00 2001 From: Bobrocket Date: Sat, 1 Oct 2016 09:33:42 +0100 Subject: [PATCH] Code readability Angle brackets for one liners --- source/Cosmos.Build.Builder/CosmosTask.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/Cosmos.Build.Builder/CosmosTask.cs b/source/Cosmos.Build.Builder/CosmosTask.cs index f0685423c0..9168cebc13 100644 --- a/source/Cosmos.Build.Builder/CosmosTask.cs +++ b/source/Cosmos.Build.Builder/CosmosTask.cs @@ -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. {