Skip to content

Commit

Permalink
Merge pull request #16388 from code-dot-org/harvester-until-crop
Browse files Browse the repository at this point in the history
Remove `isPathForward` from 'harvester_untilAtCrop'
  • Loading branch information
joshlory committed Jul 13, 2017
2 parents 0c96749 + 4b5b3b3 commit 87452d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/src/maze/harvesterBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,9 @@ exports.install = function (blockly, blockInstallOptions) {
};

generator.harvester_untilAtCrop = function () {
var pathForward = `Maze.isPathForward('block_id_${this.id}')`;
var atCrop = `Maze.at${this.getTitleValue('LOC')}('block_id_${this.id}')`;
var branch = generator.statementToCode(this, 'DO');
var code = `while (!${atCrop} && ${pathForward}) {\n${branch}}\n`;
var code = `while (!${atCrop}) {\n${branch}}\n`;
return code;
};

Expand Down

0 comments on commit 87452d5

Please sign in to comment.