Skip to content

Commit

Permalink
Fix empty agenda bug
Browse files Browse the repository at this point in the history
  • Loading branch information
samr28 committed Dec 19, 2018
1 parent f997500 commit 3597930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function setImportance(robot, id, importance) {
*/
function getAgenda(robot) {
if (getBrainData(robot).length < 1) {
return new Error('Empty agenda');
return [];
}
return getBrainData(robot);
}
Expand Down

0 comments on commit 3597930

Please sign in to comment.