Whitespace

This commit is contained in:
Chris Cameron
2018-01-16 13:05:35 -05:00
parent e26d77c827
commit e4be5e7e7c
4 changed files with 170 additions and 177 deletions

View File

@@ -23,10 +23,7 @@ namespace ICD.Common.Utils
/// Gets the path to the program directory /// Gets the path to the program directory
/// </summary> /// </summary>
[PublicAPI] [PublicAPI]
public static string ProgramPath public static string ProgramPath { get { return IcdDirectory.GetApplicationDirectory(); } }
{
get { return IcdDirectory.GetApplicationDirectory(); }
}
/// <summary> /// <summary>
/// Gets the path to the NVRAM directory. /// Gets the path to the NVRAM directory.

View File

@@ -308,9 +308,7 @@ namespace ICD.Common.Utils.Services
m_ServicesSection.Enter(); m_ServicesSection.Enter();
if (m_Services.ContainsKey(tService)) if (m_Services.ContainsKey(tService))
{
return false; return false;
}
m_Services.Add(tService, service); m_Services.Add(tService, service);
} }

View File

@@ -531,10 +531,8 @@ namespace ICD.Common.Utils
public static bool IsNullOrWhitespace(string text) public static bool IsNullOrWhitespace(string text)
{ {
if (string.IsNullOrEmpty(text)) if (string.IsNullOrEmpty(text))
{
return true; return true;
} string trimmed = text.Trim();
var trimmed = text.Trim();
return trimmed.Length == 0; return trimmed.Length == 0;
} }