Skip to content

Commit ea0c1d9

Browse files
cuishuanggopherbot
authored andcommitted
internal/timeseries: use built-in max/min to simplify the code
Change-Id: I3d408025af072559cac1f2b403a90518995d0a5a Reviewed-on: https://go-review.googlesource.com/c/net/+/664855 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
1 parent 3e7a445 commit ea0c1d9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/timeseries/timeseries_test.go

-7
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,3 @@ func TestExpectedErrorRate(t *testing.T) {
161161
checkNear(t, ts.Latest(2, buckets), min(float64(i), 3600), 600)
162162
}
163163
}
164-
165-
func min(a, b float64) float64 {
166-
if a < b {
167-
return a
168-
}
169-
return b
170-
}

0 commit comments

Comments
 (0)