Skip to content

Commit f75c234

Browse files
lint: simplify boolean check in OptionalBoolParamWithDefault function
1 parent dbdef79 commit f75c234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func OptionalBoolParamWithDefault(r mcp.CallToolRequest, p string, d bool) (bool
259259
if err != nil {
260260
return false, err
261261
}
262-
if v == false {
262+
if !v {
263263
return d, nil
264264
}
265265
return v, nil

0 commit comments

Comments
 (0)