Skip to content

Commit 956883b

Browse files
sridharavinashSamMorrowDrums
authored andcommitted
lint: simplify boolean check in OptionalBoolParamWithDefault function
1 parent b436b0b commit 956883b

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
@@ -241,7 +241,7 @@ func OptionalBoolParamWithDefault(r mcp.CallToolRequest, p string, d bool) (bool
241241
if err != nil {
242242
return false, err
243243
}
244-
if v == false {
244+
if !v {
245245
return d, nil
246246
}
247247
return v, nil

0 commit comments

Comments
 (0)