Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(538)

Side by Side Diff: 2014/readability/if-else-good.go

Issue 176660043: code review 176660043: x/talks/2014/readability: talk for GoCon 2014 autumn in...
Patch Set: diff -r 05bdda42259e https://code.google.com/p/go.talks/ Created 9 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « 2014/readability/if-else-bad.go ('k') | 2014/readability/if-switch-bad.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 package sample // OMIT
2
3 func sample() { // OMIT
4
5 if _, found := f.dirs[dir]; found { // HL
6 f.addErr(fmt.Errorf("..."))
7 return
8 }
9 f.dirs[dir] = new(feedDir) // HL
10 // some code
11 } // OMIT
OLDNEW
« no previous file with comments | « 2014/readability/if-else-bad.go ('k') | 2014/readability/if-switch-bad.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b