Skip to content

Commit a9bd565

Browse files
committed
Improve code quality
1 parent d418cd7 commit a9bd565

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/routes/(console)/project-[region]-[project]/sites/(components)/siteCard.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@
4646
}
4747
4848
function getFilePreview(fileId: string) {
49-
// Project SDK with `console` project ID = Console SDK with region prefix
50-
return sdk
51-
.forProject(page.params.region, 'console')
52-
.storage.getFileView('screenshots', fileId);
49+
return sdk.forConsoleIn(page.params.region).storage.getFileView('screenshots', fileId);
5350
}
5451
</script>
5552

src/routes/(console)/project-[region]-[project]/sites/grid.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@
3333
}
3434
3535
function getFilePreview(fileId: string) {
36-
// Project SDK with `console` project ID = Console SDK with region prefix
37-
return sdk
38-
.forProject(page.params.region, 'console')
39-
.storage.getFileView('screenshots', fileId);
36+
return sdk.forConsoleIn(page.params.region).storage.getFileView('screenshots', fileId);
4037
}
4138
</script>
4239

0 commit comments

Comments
 (0)