Skip to content

Commit 01e2ec9

Browse files
Fix no-useless-constructor example.
Per airbnb/javascript#730 (comment)
1 parent 178335d commit 01e2ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,14 +964,14 @@ Other Style Guides
964964
// bad
965965
class Rey extends Jedi {
966966
constructor(...args) {
967-
super(args);
967+
super(...args);
968968
}
969969
}
970970
971971
// good
972972
class Rey extends Jedi {
973973
constructor(...args) {
974-
super(args);
974+
super(...args);
975975
this.name = 'Rey';
976976
}
977977
}

0 commit comments

Comments
 (0)