Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit c6a1f4b

Browse files
refactor: replace template strings with regular string literals
Template literals are useful when you need: 1. [Interpolated strings](https://en.wikipedia.org/wiki/String_interpolation).
1 parent 022054f commit c6a1f4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function verboseInvariant(condition: unknown, message?: string): asserts condition {
22
if (!condition) {
3-
throw new Error(message ? `Invariant failed: ${message}` : `Invariant failed`)
3+
throw new Error(message ? `Invariant failed: ${message}` : "Invariant failed")
44
}
55
}

packages/playground/pages/examples/[slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function* GenSource() {
1616
const onMoreLoaded = (article: Article) => console.log(`article ${article.id} is added.`, article)
1717
1818
// eslint-disable-next-line no-console
19-
const onDone = () => console.log(`all articles added`)
19+
const onDone = () => console.log("all articles added")
2020
const queryBy = 'title'
2121
const searchInput = ref('')
2222
</script>

0 commit comments

Comments
 (0)