Skip to content

Commit 7a24f37

Browse files
omgitsadsLuluBeatson
authored andcommitted
Don't assert without a testing.T
1 parent 0c9e6bf commit 7a24f37

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)