Skip to content

Commit 8c211d4

Browse files
committed
Remove useless constructor
`constructor` will call the `super` function automatically. We don't have to allocate code to do that as well.
1 parent a414178 commit 8c211d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ if (!window.customElements.get('md-strikethrough')) {
274274
}
275275

276276
class MarkdownToolbarElement extends HTMLElement {
277-
constructor() {
278-
super()
279-
}
280-
281277
connectedCallback(): void {
282278
if (!this.hasAttribute('role')) {
283279
this.setAttribute('role', 'toolbar')

0 commit comments

Comments
 (0)