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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy