Sign in
go
/
website
/
9e5eadff51ec762231f3d2ba6aa8be30535224c4
/
.
/
_content
/
talks
/
2014
/
readability
/
if-else-bad.go
blob: c5a2a710072500276ff9a76868f33f993f1f6001 [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package sample
// OMIT
func sample() {
// OMIT
if _, ok := f.dirs[dir]; !ok {
// HL
f.dirs[dir] = new(feedDir)
// HL
} else {
f.addErr(fmt.Errorf("..."))
return
}
// some code
}
// OMIT