mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-11 10:45:05 +00:00
refactor: Tidying
This commit is contained in:
@@ -42,15 +42,10 @@ namespace ICD.Common.Utils.Extensions
|
||||
if (predicate == null)
|
||||
throw new ArgumentNullException("predicate");
|
||||
|
||||
T output = defaultItem;
|
||||
|
||||
foreach (T item in extends.Where(predicate))
|
||||
{
|
||||
output = item;
|
||||
break;
|
||||
}
|
||||
|
||||
return output;
|
||||
return item;
|
||||
|
||||
return defaultItem;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -544,6 +544,7 @@ namespace ICD.Common.Utils
|
||||
{
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return true;
|
||||
|
||||
string trimmed = text.Trim();
|
||||
return trimmed.Length == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user