Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
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