Skip to content

Commit 60ef745

Browse files
committed
disallow unreachable code in ts config, fix one case of it
1 parent 3a6f815 commit 60ef745

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/pages/project/instances/instance/tabs/NetworkingTab.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ export function NetworkingTab() {
337337
}),
338338
},
339339
]
340-
341-
return [copyAction]
342340
},
343341
[ephemeralIpDetach, floatingIpDetach, instanceName, project]
344342
)

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compileOnSave": false,
33
"compilerOptions": {
4+
"allowUnreachableCode": false,
45
"allowImportingTsExtensions": true,
56
"baseUrl": ".",
67
"esModuleInterop": true,

0 commit comments

Comments
 (0)