Skip to content

Commit e2a64e0

Browse files
authored
Merge pull request #151 from adamu/main
Prefix unused variables with _
2 parents 8933f6c + f16c140 commit e2a64e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class MyPlugin extends Plugin {
1717
await this.loadSettings();
1818

1919
// This creates an icon in the left ribbon.
20-
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => {
20+
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (_evt: MouseEvent) => {
2121
// Called when the user clicks the icon.
2222
new Notice('This is a notice!');
2323
});
@@ -40,7 +40,7 @@ export default class MyPlugin extends Plugin {
4040
this.addCommand({
4141
id: 'sample-editor-command',
4242
name: 'Sample editor command',
43-
editorCallback: (editor: Editor, view: MarkdownView) => {
43+
editorCallback: (editor: Editor, _view: MarkdownView) => {
4444
console.log(editor.getSelection());
4545
editor.replaceSelection('Sample Editor Command');
4646
}

0 commit comments

Comments
 (0)