Skip to content

Commit

Permalink
Fix no-useless-constructor example.
Browse files Browse the repository at this point in the history
  • Loading branch information
talentdev219 committed Feb 21, 2016
1 parent 4672599 commit 6fb32f5
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 6fb32f5

Please sign in to comment.