Skip to content

Commit b90e7a0

Browse files
authored
Add await
Even though it technically works without, let’s be clear that syscalls are always async.
1 parent ad5e9ef commit b90e7a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hello.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const loneRangerQuotes = [
88
];
99

1010
export async function helloWorld() {
11-
flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
12-
}
11+
await flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
12+
}

0 commit comments

Comments
 (0)