summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/time/rate/rate.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/time/rate/rate.go')
-rw-r--r--vendor/golang.org/x/time/rate/rate.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/vendor/golang.org/x/time/rate/rate.go b/vendor/golang.org/x/time/rate/rate.go
index a98fe77827..c0f7a5733b 100644
--- a/vendor/golang.org/x/time/rate/rate.go
+++ b/vendor/golang.org/x/time/rate/rate.go
@@ -145,7 +145,6 @@ func (r *Reservation) DelayFrom(now time.Time) time.Duration {
// Cancel is shorthand for CancelAt(time.Now()).
func (r *Reservation) Cancel() {
r.CancelAt(time.Now())
- return
}
// CancelAt indicates that the reservation holder will not perform the reserved action
@@ -186,8 +185,6 @@ func (r *Reservation) CancelAt(now time.Time) {
r.lim.lastEvent = prevEvent
}
}
-
- return
}
// Reserve is shorthand for ReserveN(time.Now(), 1).