Skip to content

Commit

Permalink
Fix no-useless-constructor example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored and gilbox committed Mar 21, 2016
1 parent 06d394c commit 29956f0
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 29956f0

Please sign in to comment.