Skip to content

Commit cdccb52

Browse files
committed
Remove unneeded type declaration
1 parent 59ac05c commit cdccb52

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/api.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { spawn, ChildProcessWithoutNullStreams } from "child_process"
1+
import { spawn } from "child_process"
22
import { Api } from "coder/site/src/api/api"
33
import { ProvisionerJobLog, Workspace } from "coder/site/src/api/typesGenerated"
44
import fs from "fs/promises"
@@ -137,11 +137,7 @@ export async function startWorkspaceIfStoppedOrFailed(
137137
}
138138

139139
return new Promise((resolve, reject) => {
140-
const startProcess: ChildProcessWithoutNullStreams = spawn(binPath, [
141-
"start",
142-
"--yes",
143-
workspace.owner_name + "/" + workspace.name,
144-
])
140+
const startProcess = spawn(binPath, ["start", "--yes", workspace.owner_name + "/" + workspace.name])
145141

146142
startProcess.stdout.on("data", (data: Buffer) => {
147143
data

0 commit comments

Comments
 (0)