diff options
author | Kevin Burke <kev@inburke.com> | 2017-08-13 19:49:27 -0600 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2017-08-14 02:22:20 +0000 |
commit | 6203a79b52a550f05511411a6c7bc3597381ee8e (patch) | |
tree | e0a9c592dfed5849c1b16cf4ab95b1a381479a97 /src/time/format.go | |
parent | c8e9fd5db0a7f30456b738e827521091acb41f95 (diff) | |
download | go-6203a79b52a550f05511411a6c7bc3597381ee8e.tar.gz go-6203a79b52a550f05511411a6c7bc3597381ee8e.zip |
time: remove unused parameter
lookupName is only called in one location, and one of the return
values is unused, so let's remove it.
Change-Id: I35e22c7ec611e8eb349deb4f0561e212f7d9de0b
Reviewed-on: https://go-review.googlesource.com/55232
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Daniel Martà <mvdan@mvdan.cc>
Diffstat (limited to 'src/time/format.go')
-rw-r--r-- | src/time/format.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/format.go b/src/time/format.go index b0f8806984..c960df0197 100644 --- a/src/time/format.go +++ b/src/time/format.go @@ -1071,7 +1071,7 @@ func parse(layout, value string, defaultLocation, local *Location) (Time, error) t := Date(year, Month(month), day, hour, min, sec, nsec, UTC) // Look for local zone with the given offset. // If that zone was in effect at the given time, use it. - offset, _, ok := local.lookupName(zoneName, t.unixSec()) + offset, ok := local.lookupName(zoneName, t.unixSec()) if ok { t.addSec(-int64(offset)) t.setLoc(local) |