Skip to content

Commit

Permalink
Fix no-useless-constructor example.
Browse files Browse the repository at this point in the history
  • Loading branch information
passionSeven committed Feb 21, 2016
1 parent 6377313 commit b22edd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,14 +964,14 @@ Other Style Guides
// bad
class Rey extends Jedi {
constructor(...args) {
super(args);
super(...args);
}
}
// good
class Rey extends Jedi {
constructor(...args) {
super(args);
super(...args);
this.name = 'Rey';
}
}
Expand Down

0 comments on commit b22edd7

Please sign in to comment.