From 861e5d8d209a92f18638f8ef730dc126e7dc998d Mon Sep 17 00:00:00 2001 From: gubatron Date: Thu, 16 Oct 2014 01:53:53 -0400 Subject: [PATCH] unnecessary if statement --- src/twister.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/twister.cpp b/src/twister.cpp index 6c37ece3..f4f73ec5 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -2494,9 +2494,7 @@ TextSearch::TextSearch(string const &keyword, entry const ¶ms) : } entry const *pCase = params.find_key("case"); - if( pCase && pCase->type() == entry::string_t && pCase->string() == "insensitive" ) { - caseInsensitive = true; - } + caseInsensitive = pCase && pCase->type() == entry::string_t && pCase->string() == "insensitive"; int64_t now = GetAdjustedTime();