Quellcode durchsuchen

cleanup(persistent-bash): drop impossible marker branch

Tianyi Cui vor 2 Monaten
Ursprung
Commit
a3caf4b211
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0 1
      packages/pty/tool-bash-persistent/src/index.ts

+ 0 - 1
packages/pty/tool-bash-persistent/src/index.ts

@@ -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)