Skip to content

Commit 9f6155a

Browse files
authored
query_options: remove redundant type conversion (golang#94)
Signed-off-by: cui fliter <[email protected]>
1 parent b92cf6f commit 9f6155a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s2/query_options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (q *queryOptions) MaxError(x s1.ChordAngle) *queryOptions {
130130
// This must be at least 1.
131131
func (q *queryOptions) MaxResults(x int) *queryOptions {
132132
// TODO(roberts): What should be done if the value is <= 0?
133-
q.maxResults = int(x)
133+
q.maxResults = x
134134
return q
135135
}
136136

0 commit comments

Comments
 (0)