From 082235eaaf864b1cbbbf6920ba578012182acca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 24 May 2016 16:31:05 +0200 Subject: [PATCH] Minor refactoring. --- src/plasp/sas/Value.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/plasp/sas/Value.cpp b/src/plasp/sas/Value.cpp index 88886f2..0219025 100644 --- a/src/plasp/sas/Value.cpp +++ b/src/plasp/sas/Value.cpp @@ -168,13 +168,8 @@ void Value::printAsSAS(std::ostream &ostream) const bool operator ==(const Value &value1, const Value &value2) { - if (value1.sign() != value2.sign()) - return false; - - if (value1.name() != value2.name()) - return false; - - return true; + return value1.sign() == value2.sign() + && value1.name() == value2.name(); } ////////////////////////////////////////////////////////////////////////////////////////////////////