Sign in
go
/
website
/
0b9a73dea9fd2b0ac1f81a64c7ab586e35cc3cc7
/
.
/
_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