summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.cc')
-rw-r--r--src/option.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/option.cc b/src/option.cc
index 65de3d1f..3cafa06a 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -49,8 +49,7 @@ namespace {
}
*p = '\0';
- expr_t::ptr_op_t op = scope.lookup(buf);
- if (op)
+ if (expr_t::ptr_op_t op = scope.lookup(buf))
return op_bool_tuple(op, false);
*p++ = '_';
@@ -66,8 +65,7 @@ namespace {
buf[4] = letter;
buf[5] = '\0';
- expr_t::ptr_op_t op = scope.lookup(buf);
- if (op)
+ if (expr_t::ptr_op_t op = scope.lookup(buf))
return op_bool_tuple(op, false);
buf[5] = '_';