• Brad Fitzpatrick's avatar
    all: remove public named return values when useless · 351c15f1
    Brad Fitzpatrick authored
    Named returned values should only be used on public funcs and methods
    when it contributes to the documentation.
    
    Named return values should not be used if they're only saving the
    programmer a few lines of code inside the body of the function,
    especially if that means there's stutter in the documentation or it
    was only there so the programmer could use a naked return
    statement. (Naked returns should not be used except in very small
    functions)
    
    This change is a manual audit & cleanup of public func signatures.
    
    Signatures were not changed if:
    
    * the func was private (wouldn't be in public godoc)
    * the documentation referenced it
    * the named return value was an interesting name. (i.e. it wasn't
      simply stutter, repeating the name of the type)
    
    There should be no changes in behavior. (At least: none intended)
    
    Change-Id: I3472ef49619678fe786e5e0994bdf2d9de76d109
    Reviewed-on: https://go-review.googlesource.com/20024
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
    351c15f1
Name
Last commit
Last update
..
example_test.go Loading commit data...
export_test.go Loading commit data...
export_windows_test.go Loading commit data...
format.go Loading commit data...
format_test.go Loading commit data...
genzabbrs.go Loading commit data...
internal_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_abbrs_windows.go Loading commit data...
zoneinfo_ios.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_test.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...
zoneinfo_windows_test.go Loading commit data...