From 5c6a595e480ecf7cf93e5029e81c33ae81a3a5b1 Mon Sep 17 00:00:00 2001 From: Michiel van Oosterhout Date: Sun, 7 Oct 2012 08:50:09 -0200 Subject: [PATCH] Changed conditions to put the constant last, so (x == false) instead of (false == x). Code now conforms to project coding standards. --- src/Umbraco.Web/umbraco.presentation/install/default.aspx.cs | 2 +- .../umbraco.presentation/install/steps/Definitions/Skinning.cs | 2 +- .../umbraco.presentation/install/steps/welcome.ascx.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/install/default.aspx.cs b/src/Umbraco.Web/umbraco.presentation/install/default.aspx.cs index bb42a99fcd..b134122b6e 100644 --- a/src/Umbraco.Web/umbraco.presentation/install/default.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/install/default.aspx.cs @@ -90,7 +90,7 @@ namespace umbraco.presentation.install //if this is not an upgrade we will log in with the default user. // It's not considered an upgrade if the ConfigurationStatus is missing or empty. - if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus)) + if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false) { try { diff --git a/src/Umbraco.Web/umbraco.presentation/install/steps/Definitions/Skinning.cs b/src/Umbraco.Web/umbraco.presentation/install/steps/Definitions/Skinning.cs index d1bc8eb685..44713c6595 100644 --- a/src/Umbraco.Web/umbraco.presentation/install/steps/Definitions/Skinning.cs +++ b/src/Umbraco.Web/umbraco.presentation/install/steps/Definitions/Skinning.cs @@ -28,7 +28,7 @@ namespace umbraco.presentation.install.steps.Definitions public override bool Completed() { - if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus)) + if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false) return true; if (InstalledPackage.GetAllInstalledPackages().Count > 0) diff --git a/src/Umbraco.Web/umbraco.presentation/install/steps/welcome.ascx.cs b/src/Umbraco.Web/umbraco.presentation/install/steps/welcome.ascx.cs index 1096cd9100..b69ab00bf3 100644 --- a/src/Umbraco.Web/umbraco.presentation/install/steps/welcome.ascx.cs +++ b/src/Umbraco.Web/umbraco.presentation/install/steps/welcome.ascx.cs @@ -18,7 +18,7 @@ namespace umbraco.presentation.install protected void Page_Load(object sender, System.EventArgs e) { // Display the Umbraco upgrade message if Umbraco is already installed - if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus)) + if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false) { ph_install.Visible = false; ph_upgrade.Visible = true;