From 5f76dca449a73f2d3a41b1d141269de3a425bf35 Mon Sep 17 00:00:00 2001 From: Pedro Larouca Date: Fri, 26 Jan 2018 00:33:32 +0000 Subject: [PATCH] [Samples] Entry code cleanup --- Source/Samples/Sections/Widgets/EntrySection.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; };