Skip to content

Commit 4f16c45

Browse files
committed
fix: remove redundant nil check in checkOpenCodeMCP
Staticcheck S1009: len() for nil maps is defined as zero, so the nil check is unnecessary.
1 parent 9d3ab0d commit 4f16c45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/doctor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func checkOpenCodeMCP(cwd string) []DoctorCheck {
408408
}
409409

410410
// Check 3: Validate MCP section exists
411-
if config.MCP == nil || len(config.MCP) == 0 {
411+
if len(config.MCP) == 0 {
412412
checks = append(checks, DoctorCheck{
413413
Name: "MCP (OpenCode)",
414414
Status: "fail",

0 commit comments

Comments
 (0)