chore: format with prettier [skip ci]
This commit is contained in:
parent
95c0fdf71e
commit
b4067ca61a
|
|
@ -329,13 +329,7 @@ export function useTerminalSession(session: WorkspaceSession | undefined, option
|
|||
const handle = session?.terminalHandleId ?? null;
|
||||
const previousStatus = previousSessionStatusRef.current;
|
||||
previousSessionStatusRef.current = session?.status;
|
||||
if (
|
||||
!handle ||
|
||||
previousStatus !== "terminated" ||
|
||||
session?.status === "terminated" ||
|
||||
r.detached ||
|
||||
!r.terminal
|
||||
) {
|
||||
if (!handle || previousStatus !== "terminated" || session?.status === "terminated" || r.detached || !r.terminal) {
|
||||
return;
|
||||
}
|
||||
if (r.handle !== handle) return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue