Skip to content

Commit b1ac345

Browse files
committed
Don't assert without a testing.T
1 parent faa90d2 commit b1ac345

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/github/helper_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ func createMCPRequest(args any) mcp.CallToolRequest {
117117
}
118118

119119
argsJSON, err := json.Marshal(argsMap)
120-
require.NoError(nil, err)
120+
if err != nil {
121+
return mcp.CallToolRequest{}
122+
}
121123

122124
jsonRawMessage := json.RawMessage(argsJSON)
123125

0 commit comments

Comments
 (0)