Skip to content

Commit

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

Please sign in to comment.