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