mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Whitespace
This commit is contained in:
parent
e26d77c827
commit
e4be5e7e7c
4 changed files with 170 additions and 177 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue