about summary refs log tree commit diff stats
path: root/071recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-08-30 03:07:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-08-30 03:07:18 -0700
commitb74744cd5851e034a88d4a335b22a372ebb39237 (patch)
treeabfaa2047c44d2d15219f9c1882269194d79c54a /071recipe.cc
parent0899b237b0923a07ecac16a9adf551921925c5a3 (diff)
downloadmu-b74744cd5851e034a88d4a335b22a372ebb39237.tar.gz
3985
Diffstat (limited to '071recipe.cc')
-rw-r--r--071recipe.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/071recipe.cc b/071recipe.cc
index 9d77869d..a3a258c7 100644
--- a/071recipe.cc
+++ b/071recipe.cc
@@ -277,9 +277,7 @@ bool is_mu_recipe(const reagent& r) {
   if (!r.type) return false;
   if (r.type->atom)
     return r.type->name == "recipe-literal";
-  if (!r.type->left->atom) return false;
-  if (r.type->left->name == "recipe") return true;
-  return false;
+  return r.type->left->atom && r.type->left->name == "recipe";
 }
 
 :(scenario copy_typecheck_recipe_variable)