Skip to content

Commit

Permalink
add break statement to prevent erroneous fall-through
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt committed Jan 9, 2017
1 parent 907617b commit 82618ee
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 @@ -1213,6 +1213,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 82618ee

Please sign in to comment.