Sign in
go
/
website
/
617d83c5d40b0ebcebb0da1d6bbf9180565e5a14
/
.
/
_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