mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Whitespace
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user