aboutsummaryrefslogtreecommitdiff
path: root/src/time/format.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2018-03-24 15:49:43 +0000
committerDaniel Martí <mvdan@mvdan.cc>2018-03-24 19:44:47 +0000
commit8da180f6cac51f6cb8a316b962f797dbaf7ee96f (patch)
tree0dc75b1158d5c984d8c70e42228297fc75e97be6 /src/time/format.go
parentb1892d740eaeddc46a0c735b472718149c438844 (diff)
downloadgo-8da180f6cac51f6cb8a316b962f797dbaf7ee96f.tar.xz
all: remove some unused return parameters
As found by unparam. Picked the low-hanging fruit, consisting only of errors that were always nil and results that were never used. Left out those that were useful for consistency with other func signatures. Change-Id: I06b52bbd3541f8a5d66659c909bd93cb3e172018 Reviewed-on: https://go-review.googlesource.com/102418 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/time/format.go')
-rw-r--r--src/time/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/format.go b/src/time/format.go
index 7994052510..237f28738b 100644
--- a/src/time/format.go
+++ b/src/time/format.go
@@ -1059,7 +1059,7 @@ func parse(layout, value string, defaultLocation, local *Location) (Time, error)
// Look for local zone with the given offset.
// If that zone was in effect at the given time, use it.
- name, offset, _, _, _ := local.lookup(t.unixSec())
+ name, offset, _, _ := local.lookup(t.unixSec())
if offset == zoneOffset && (zoneName == "" || name == zoneName) {
t.setLoc(local)
return t, nil