cleanup(persistent-bash): drop impossible marker branch
This commit is contained in:
@@ -96,7 +96,6 @@ function commandOutput(
|
|||||||
): CapturedOutput | undefined {
|
): CapturedOutput | undefined {
|
||||||
const text = snapshot.text
|
const text = snapshot.text
|
||||||
const end = text.lastIndexOf(marker.end)
|
const end = text.lastIndexOf(marker.end)
|
||||||
if (end < 0) return undefined
|
|
||||||
const status = /^(\d+)\r?\n/.exec(text.slice(end + marker.end.length))?.[1]
|
const status = /^(\d+)\r?\n/.exec(text.slice(end + marker.end.length))?.[1]
|
||||||
if (status === undefined) return undefined
|
if (status === undefined) return undefined
|
||||||
const startMarker = text.lastIndexOf(marker.start, end)
|
const startMarker = text.lastIndexOf(marker.start, end)
|
||||||
|
|||||||
Reference in New Issue
Block a user