Clean up declaration of default work block
This commit is contained in:
parent
b66a1d3fee
commit
9c60700c0f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue