Skip to content

Commit

Permalink
Merge pull request ryanmcdermott#92 from vsemozhetbyt/break
Browse files Browse the repository at this point in the history
add `break` statement to prevent erroneous fall-through
  • Loading branch information
ryanmcdermott authored Jan 10, 2017
2 parents 847e340 + 82618ee commit d971254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ function renderLargeShapes(shapes) {
switch (shape.constructor.name) {
case 'Square':
shape.setLength(5);
break;
case 'Rectangle':
shape.setWidth(4);
shape.setHeight(5);
Expand Down

0 comments on commit d971254

Please sign in to comment.