Skip to content

Commit a3bd243

Browse files
KATO-Hiroclaude
andcommitted
style: add comment explaining why resolve() is skipped for server-generated redirect
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e8a2cb8 commit a3bd243

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/routes/(admin)/tasks/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
} else if (result.type === 'failure') {
4141
fetchError = (result.data as { message?: string })?.message ?? 'データ取得に失敗しました。';
4242
} else if (result.type === 'redirect') {
43+
// result.location is a server-generated URL, so resolve() is not needed
4344
// eslint-disable-next-line svelte/no-navigation-without-resolve
4445
await goto(result.location);
4546
} else {

0 commit comments

Comments
 (0)