From 09d0cfbf237b4fc50aee61de9bcbaf68777dd86e Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 7 Sep 2022 21:20:15 +0800 Subject: [PATCH] s2: remove redundant type conversion Signed-off-by: cui fliter --- s2/query_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s2/query_options.go b/s2/query_options.go index 9b7e38d6..84401d94 100644 --- a/s2/query_options.go +++ b/s2/query_options.go @@ -130,7 +130,7 @@ func (q *queryOptions) MaxError(x s1.ChordAngle) *queryOptions { // This must be at least 1. func (q *queryOptions) MaxResults(x int) *queryOptions { // TODO(roberts): What should be done if the value is <= 0? - q.maxResults = int(x) + q.maxResults = x return q }