Skip to content

Commit 0ec251f

Browse files
authored
chore: remove outdated TODO comment (#14664)
1 parent a5a4649 commit 0ec251f

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

packages/svelte/scripts/process-messages/templates/shared-errors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function CODE(PARAMETER) {
1111
error.name = 'Svelte error';
1212
throw error;
1313
} else {
14-
// TODO print a link to the documentation
1514
throw new Error(`https://svelte.dev/e/${'CODE'}`);
1615
}
1716
}

packages/svelte/scripts/process-messages/templates/shared-warnings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function CODE(PARAMETER) {
1515
normal
1616
);
1717
} else {
18-
// TODO print a link to the documentation
1918
console.warn(`https://svelte.dev/e/${'CODE'}`);
2019
}
2120
}

packages/svelte/src/internal/shared/errors.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export function invalid_default_snippet() {
1313
error.name = 'Svelte error';
1414
throw error;
1515
} else {
16-
// TODO print a link to the documentation
1716
throw new Error(`https://svelte.dev/e/invalid_default_snippet`);
1817
}
1918
}
@@ -30,7 +29,6 @@ export function lifecycle_outside_component(name) {
3029
error.name = 'Svelte error';
3130
throw error;
3231
} else {
33-
// TODO print a link to the documentation
3432
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
3533
}
3634
}
@@ -47,7 +45,6 @@ export function store_invalid_shape(name) {
4745
error.name = 'Svelte error';
4846
throw error;
4947
} else {
50-
// TODO print a link to the documentation
5148
throw new Error(`https://svelte.dev/e/store_invalid_shape`);
5249
}
5350
}
@@ -63,7 +60,6 @@ export function svelte_element_invalid_this_value() {
6360
error.name = 'Svelte error';
6461
throw error;
6562
} else {
66-
// TODO print a link to the documentation
6763
throw new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`);
6864
}
6965
}

packages/svelte/src/internal/shared/warnings.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export function dynamic_void_element_content(tag) {
1313
if (DEV) {
1414
console.warn(`%c[svelte] dynamic_void_element_content\n%c\`<svelte:element this="${tag}">\` is a void element — it cannot have content\nhttps://svelte.dev/e/dynamic_void_element_content`, bold, normal);
1515
} else {
16-
// TODO print a link to the documentation
1716
console.warn(`https://svelte.dev/e/dynamic_void_element_content`);
1817
}
1918
}
@@ -32,7 +31,6 @@ export function state_snapshot_uncloneable(properties) {
3231
${properties}`
3332
: "Value cannot be cloned with `$state.snapshot` — the original value was returned"}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal);
3433
} else {
35-
// TODO print a link to the documentation
3634
console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`);
3735
}
3836
}

0 commit comments

Comments
 (0)