Clean up declaration of default work block

This commit is contained in:
Andrew Stewart 2014-06-10 18:38:55 -07:00
parent b66a1d3fee
commit 9c60700c0f
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ var Robot = module.exports = function Robot(opts) {
this.running = false;
this.work = opts.work || opts.play;
this.work || (this.work = function() { Logger.info("No work yet"); });
if (!this.work) {
this.work = function() { console.log("No work yet."); }
}
this.registerDefaults();