Sign in
go
/
tools
/
76f78597112f06eeb07cc891e2976db2502a49e7
/
.
/
gopls
/
internal
/
lsp
/
testdata
/
invertifcondition
/
boolean_fn.go.golden
blob: 26e8193302d8fc9af9f663a0b4078f7a898c8d1c [
file
] [
log
] [
blame
]
--
suggestedfix_boolean_fn_9_2
--
package
invertifcondition
import
(
"fmt"
"os"
)
func
BooleanFn
()
{
if
!
os
.
IsPathSeparator
(
'X'
)
{
fmt
.
Println
(
"B"
)
}
else
{
//@suggestedfix("if os.IsPathSeparator('X')", "refactor.rewrite", "")
fmt
.
Println
(
"A"
)
}
}