diff --git a/Source/Samples/Sections/Widgets/EntrySection.cs b/Source/Samples/Sections/Widgets/EntrySection.cs index 00f41b174..a2dc39a95 100644 --- a/Source/Samples/Sections/Widgets/EntrySection.cs +++ b/Source/Samples/Sections/Widgets/EntrySection.cs @@ -151,12 +151,7 @@ namespace Samples var o = model.GetValue(iter, 0); var searchString = o as string; if (!string.IsNullOrEmpty(searchString)) - { - if (searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase)) - return true; - else - return false; - } + return searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase); return true; };