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