go-tools
go-tools copied to clipboard
feat: simplify single bool judgment in if conditional statement
func dummy() bool {
return true
}
func main() {
if ok := dummy(); ok {
// do something
}
// it should be
if dummy() {
}
}