Sign in
go
/
website
/
8cd359112ea8314a583ca0505da660e0b9831c0f
/
.
/
_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