From 21eae4b202c40e09db2bba3a2b249716a0d94cd3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jan 2014 11:34:51 +0100 Subject: [PATCH] simplify Change-Id: I564ef5ebf16c0ee50da69f3d8b97a5452a1cd0b8 --- registry/tools/options.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx index 02057091f863..4e918ec1b6e9 100644 --- a/registry/tools/options.cxx +++ b/registry/tools/options.cxx @@ -47,14 +47,16 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, switch (arg[0]) { case '@': - if ((result = (len > 1)) == true) + result = len > 1; + if (result) { // "@" result = Options::checkCommandFile(rArgs, &(arg[1])); } break; case '-': - if ((result = (len > 1)) == true) + result = len > 1; + if (result) { // "-