chore: remove outdated TODO comment (#14664)

pull/14681/head
Rich Harris 2 weeks ago committed by GitHub
parent a5a4649743
commit 0ec251f09d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,7 +11,6 @@ export function CODE(PARAMETER) {
error.name = 'Svelte error';
throw error;
} else {
// TODO print a link to the documentation
throw new Error(`https://svelte.dev/e/${'CODE'}`);
}
}

@ -15,7 +15,6 @@ export function CODE(PARAMETER) {
normal
);
} else {
// TODO print a link to the documentation
console.warn(`https://svelte.dev/e/${'CODE'}`);
}
}

@ -13,7 +13,6 @@ export function invalid_default_snippet() {
error.name = 'Svelte error';
throw error;
} else {
// TODO print a link to the documentation
throw new Error(`https://svelte.dev/e/invalid_default_snippet`);
}
}
@ -30,7 +29,6 @@ export function lifecycle_outside_component(name) {
error.name = 'Svelte error';
throw error;
} else {
// TODO print a link to the documentation
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
}
}
@ -47,7 +45,6 @@ export function store_invalid_shape(name) {
error.name = 'Svelte error';
throw error;
} else {
// TODO print a link to the documentation
throw new Error(`https://svelte.dev/e/store_invalid_shape`);
}
}
@ -63,7 +60,6 @@ export function svelte_element_invalid_this_value() {
error.name = 'Svelte error';
throw error;
} else {
// TODO print a link to the documentation
throw new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`);
}
}

@ -13,7 +13,6 @@ export function dynamic_void_element_content(tag) {
if (DEV) {
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);
} else {
// TODO print a link to the documentation
console.warn(`https://svelte.dev/e/dynamic_void_element_content`);
}
}
@ -32,7 +31,6 @@ export function state_snapshot_uncloneable(properties) {
${properties}`
: "Value cannot be cloned with `$state.snapshot` — the original value was returned"}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal);
} else {
// TODO print a link to the documentation
console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`);
}
}
Loading…
Cancel
Save