Skip to content

Conversation

@egonelbre
Copy link
Contributor

@egonelbre egonelbre commented Aug 22, 2024

  • perf(spanner): avoid using fmt.Errorf unnecessarily
  • perf(spanner): avoid duplicated errors.New in UnmarshalJSON
  • fix(spanner): error strings should not be capitalized

Updates #9749

Fixed automatically with:

  go fmt -w -r "fmt.Errorf(s) -> errors.New(s)" .
  goimports -w .

Updates googleapis#9749
errors.New generates a significant amount of code, however,
the error definition can be easily shared between the implementations.
@egonelbre egonelbre requested review from a team as code owners August 22, 2024 13:26
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Aug 22, 2024
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 25, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 25, 2024
@rahul2393 rahul2393 added the automerge Merge the pull request once unit tests and other checks pass. label Sep 25, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit c342f65 into googleapis:main Sep 25, 2024
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 25, 2024
@egonelbre egonelbre deleted the errors branch September 25, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants