mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
4bf8bd3848
commit
48f158215d
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ export async function cmd() {
|
|||
console.error(MISSING_SESSION_ID_ERROR);
|
||||
process.exit(1);
|
||||
}
|
||||
const getWorkspaceIdAsync = getWorkspaceId().catch(err => {
|
||||
const getWorkspaceIdAsync = getWorkspaceId().catch((err) => {
|
||||
return err as Error;
|
||||
});
|
||||
await promptBegin();
|
||||
|
@ -84,7 +84,7 @@ async function getWorkspaceId(): Promise<string> {
|
|||
}
|
||||
|
||||
function unwrapWorkspaceId(workspaceId: string | Error): string {
|
||||
if(typeof workspaceId !== 'string') {
|
||||
if (typeof workspaceId !== 'string') {
|
||||
console.error(workspaceId.message);
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue