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