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