We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for some function signatures, if the return error value is never to be a valid error, just remove the error definition in its signature.
-func (*DataSource) buildIndexMergePartialPath(indexAccessPaths []*util.AccessPath) (*util.AccessPath, error) { +func (*DataSource) buildIndexMergePartialPath(indexAccessPaths []*util.AccessPath) *util.AccessPath { if len(indexAccessPaths) == 1 { - return indexAccessPaths[0], nil + return indexAccessPaths[0] } minEstRowIndex := 0 @@ -401,7 +401,7 @@ func (*DataSource) buildIndexMergePartialPath(indexAccessPaths []*util.AccessPat minEstRow = rc } } - return indexAccessPaths[minEstRowIndex], nil + return indexAccessPaths[minEstRowIndex] }
The text was updated successfully, but these errors were encountered:
planner: eliminate redundant returned error signature when all code b…
ca816f8
…ranchs return nil (#49975) close #49977
AilinKid
Successfully merging a pull request may close this issue.
Enhancement
for some function signatures, if the return error value is never to be a valid error, just remove the error definition in its signature.
The text was updated successfully, but these errors were encountered: