From 1fe96d0d22889630197e7003e747fe8c2bddda90 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 17 Mar 2014 14:36:34 +0100 Subject: [PATCH] remove collapsable if statement --- Extractor/PBFParser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Extractor/PBFParser.cpp b/Extractor/PBFParser.cpp index 106d9c40f..b30aa9425 100644 --- a/Extractor/PBFParser.cpp +++ b/Extractor/PBFParser.cpp @@ -252,12 +252,12 @@ inline void PBFParser::parseRelation(_ThreadData * threadData) { break; } } - if ("restriction" == key) { - if(val.find("only_") == 0) { - isOnlyRestriction = true; - } + if ( ("restriction" == key) && (val.find("only_") == 0) ) + { + isOnlyRestriction = true; } - if ("except" == key) { + if ("except" == key) + { except_tag_string = val; } }