From bad414be39eff057968cf9837024e906c0da8ac4 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 7 Aug 2014 14:00:30 -0700 Subject: [PATCH] Correctly avoid labelling 'work' as a command --- lib/robot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/robot.js b/lib/robot.js index fdcb99e..5cfda5d 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -100,10 +100,10 @@ var Robot = module.exports = function Robot(opts) { if (reserved.indexOf(n) < 0) { this[n] = opt; - } - if (opts.commands == null && typeof(opt) === 'function') { - this.commands[n] = opt; + if (opts.commands == null && typeof(opt) === 'function') { + this.commands[n] = opt; + } } }