cleanup(persistent-bash): drop impossible marker branch

This commit is contained in:
Tianyi Cui
2026-07-30 00:16:26 +08:00
parent 9549c73f30
commit a3caf4b211

View File

@@ -96,7 +96,6 @@ function commandOutput(
): CapturedOutput | undefined {
const text = snapshot.text
const end = text.lastIndexOf(marker.end)
if (end < 0) return undefined
const status = /^(\d+)\r?\n/.exec(text.slice(end + marker.end.length))?.[1]
if (status === undefined) return undefined
const startMarker = text.lastIndexOf(marker.start, end)