[Samples] Entry code cleanup

This commit is contained in:
Pedro Larouca 2018-01-26 00:33:32 +00:00
parent 09c0ee598e
commit 5f76dca449

View File

@ -151,12 +151,7 @@ namespace Samples
var o = model.GetValue(iter, 0); var o = model.GetValue(iter, 0);
var searchString = o as string; var searchString = o as string;
if (!string.IsNullOrEmpty(searchString)) if (!string.IsNullOrEmpty(searchString))
{ return searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase);
if (searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase))
return true;
else
return false;
}
return true; return true;
}; };