Skip to content

Commit 6dcfac6

Browse files
CliBridge: drop redundant OUTPUT_PATTERN pre-check in runGitCmd
extractRequired already fails with a clear message when output is missing; matches getCurrentSha/getBranches style (CodeRabbit review). Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
1 parent 175f0a5 commit 6dcfac6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

testkit/java/src/main/java/io/gitfire/testkit/CliBridge.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ public String runGitCmd(String repoPath, String... args) {
254254
}
255255
payload.append("]}");
256256
String json = invoke(payload.toString());
257-
if (!OUTPUT_PATTERN.matcher(json).find()) {
258-
throw new IllegalStateException("missing output in bridge response: " + json);
259-
}
260257
return extractRequired(json, OUTPUT_PATTERN, "output");
261258
}
262259

0 commit comments

Comments
 (0)