perf: Small optimization in StringExtensions

This commit is contained in:
Chris Cameron
2018-10-30 17:06:42 -04:00
parent b58220d3c7
commit 043a50669a

View File

@@ -37,6 +37,9 @@ namespace ICD.Common.Utils.Extensions
index = thisIndex; index = thisIndex;
first = item; first = item;
if (index == 0)
break;
} }
return index; return index;