refactor: Tidying

This commit is contained in:
Chris Cameron
2018-06-07 13:12:41 -04:00
parent 086aee8167
commit 4bc6258b62
2 changed files with 4 additions and 8 deletions

View File

@@ -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>

View File

@@ -544,6 +544,7 @@ namespace ICD.Common.Utils
{
if (string.IsNullOrEmpty(text))
return true;
string trimmed = text.Trim();
return trimmed.Length == 0;
}