From 027c386e052a77dac4c8d1ba38738929641f754f Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Thu, 23 Oct 2014 16:14:24 +0200 Subject: [PATCH] Shortcut for boolean conversion --- libevmface/Instruction.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libevmface/Instruction.cpp b/libevmface/Instruction.cpp index e5255a44d..7b253f388 100644 --- a/libevmface/Instruction.cpp +++ b/libevmface/Instruction.cpp @@ -321,8 +321,5 @@ InstructionInfo dev::eth::instructionInfo(Instruction _inst) bool dev::eth::isValidInstruction(Instruction _inst) { - if (c_instructionInfo.count(_inst)) - return true; - else - return false; + return !!c_instructionInfo.count(_inst); }