[object Object]

← back to Cli Printing Press

style(cli): simplify async-detect sibling-filter boolean

3fd4a5a8784e011da2056ad983e8f7fe2b22a098 · 2026-04-17 23:55:20 -0400 · Matt Van Horn

Files touched

Diff

commit 3fd4a5a8784e011da2056ad983e8f7fe2b22a098
Author: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Date:   Fri Apr 17 23:55:20 2026 -0400

    style(cli): simplify async-detect sibling-filter boolean
---
 internal/generator/async_detect.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/generator/async_detect.go b/internal/generator/async_detect.go
index 566ed0ed..1645ec3b 100644
--- a/internal/generator/async_detect.go
+++ b/internal/generator/async_detect.go
@@ -165,7 +165,7 @@ func findStatusSibling(s *spec.APISpec, rName, eName string) (string, string) {
 			continue
 		}
 		low := strings.ToLower(otherName)
-		if !(strings.Contains(low, "status") || strings.Contains(low, "job") || strings.Contains(low, "task") || strings.Contains(low, "operation")) {
+		if !strings.Contains(low, "status") && !strings.Contains(low, "job") && !strings.Contains(low, "task") && !strings.Contains(low, "operation") {
 			continue
 		}
 		for candName := range other.Endpoints {

← 3ae025f8 feat(cli): agent_workflow_readiness scorecard dimension  ·  back to Cli Printing Press  ·  fix(cli): authenticate mega MCP library fetches with GITHUB_ 1d4e642c →