Skip to content

Commit 706e8c4

Browse files
committed
Fix validation issues
- Remove unnecessary async keywords - Use sentence case for UI text
1 parent 38af9f7 commit 706e8c4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

main.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import { Notice, Plugin, MarkdownView } from 'obsidian';
22

33
export default class DoNextTaskPlugin extends Plugin {
4-
async onload() {
4+
onload() {
55
// Add ribbon icon for marking next task
6-
this.addRibbonIcon('check-circle', 'Mark Next Task', async () => {
7-
await this.markNextTask();
6+
this.addRibbonIcon('check-circle', 'Mark next task', () => {
7+
this.markNextTask();
88
});
99

1010
// Add command for marking next task
1111
this.addCommand({
1212
id: 'mark-next-task',
13-
name: 'Mark Next Task',
14-
callback: async () => {
15-
await this.markNextTask();
13+
name: 'Mark next task',
14+
callback: () => {
15+
this.markNextTask();
1616
}
1717
});
1818
}
1919

20-
async markNextTask() {
20+
markNextTask() {
2121
const activeView = this.app.workspace.getActiveViewOfType(MarkdownView);
2222

2323
if (!activeView) {

0 commit comments

Comments
 (0)