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) if (predicate == null)
throw new ArgumentNullException("predicate"); throw new ArgumentNullException("predicate");
T output = defaultItem;
foreach (T item in extends.Where(predicate)) foreach (T item in extends.Where(predicate))
{ return item;
output = item;
break;
}
return output; return defaultItem;
} }
/// <summary> /// <summary>

View File

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