Sign in
go
/
website
/
44086c137c450561de992096ac32ac81752fefa9
/
.
/
_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