Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

cleanup: return instead of fallthrough + improve comment#844

Merged
thiagotnunes merged 1 commit intomasterfrom
issue-830
Feb 2, 2021
Merged

cleanup: return instead of fallthrough + improve comment#844
thiagotnunes merged 1 commit intomasterfrom
issue-830

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

Return the TransactionSelector that is built instead of falling through to the end of the method. The behavior does not change by this, but it makes it easier to read and understand the code.

Fixes #830

Return the TransactionSelector that is built instead of falling through to the end of
the method. The behavior does not change by this, but it makes it easier to read and
understand the code.

Fixes #830
@olavloite olavloite requested review from a team and thiagotnunes February 1, 2021 13:50
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 1, 2021
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/java-spanner API. label Feb 1, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 1, 2021

Codecov Report

Merging #844 (6c14374) into master (61ea2b9) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #844      +/-   ##
============================================
+ Coverage     85.04%   85.06%   +0.01%     
- Complexity     2585     2586       +1     
============================================
  Files           143      143              
  Lines         14145    14144       -1     
  Branches       1369     1369              
============================================
+ Hits          12030    12031       +1     
+ Misses         1542     1541       -1     
+ Partials        573      572       -1     
Impacted Files Coverage Δ Complexity Δ
...om/google/cloud/spanner/TransactionRunnerImpl.java 85.71% <100.00%> (-0.04%) 9.00 <0.00> (ø)
...ud/spanner/SessionPoolAsyncTransactionManager.java 87.30% <0.00%> (+1.58%) 13.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61ea2b9...7711420. Read the comment docs.

@thiagotnunes thiagotnunes merged commit 2c745f3 into master Feb 2, 2021
@thiagotnunes thiagotnunes deleted the issue-830 branch February 2, 2021 03:29
thiagotnunes pushed a commit that referenced this pull request May 6, 2021
Return the TransactionSelector that is built instead of falling through to the end of
the method. The behavior does not change by this, but it makes it easier to read and
understand the code.

Fixes #830
ansh0l pushed a commit to ansh0l/java-spanner that referenced this pull request Nov 10, 2022
This is an auto-generated regeneration of the .pb.go files by
cloud.google.com/go/internal/gapicgen. Once this PR is submitted, genbot will
update the corresponding PR to depend on the newer version of go-genproto, and
assign reviewers. Whilst this or any regen PR is open in go-genproto, genbot
will not create any more regeneration PRs. If all regen PRs are closed,
gapicgen will create a new set of regeneration PRs once per night.

If you have been assigned to review this PR, please:

- Ensure that CI is passing. If it's failing, it requires your manual attention.
- Approve and submit this PR if you believe it's ready to ship. That will prompt
genbot to assign reviewers to the google-cloud-go PR.

Corresponding google-cloud-go PR: googleapis/google-cloud-go#6296

Changes:

chore: regenerate API index

  Source-Link: googleapis/googleapis@8d5b1a3

feat(container): add support to modify kubelet pod pid limit in node system configuration feat: support spot VM feat: support Tier 1 bandwidth feat: update support for node pool labels, taints and network tags feat: add Binauthz Evaluation mode support to GKE Classic feat: add GKE Identity Service feat: add network tags to autopilot cluster feat: support enabling Confidential Nodes in the node pool feat: support node pool blue-green upgrade feat: add Location Policy API feat: support GPU timesharing feat: add managed prometheus feature
  PiperOrigin-RevId: 458323987
  Source-Link: googleapis/googleapis@c51f2ed

chore: regenerate API index

  Source-Link: googleapis/googleapis@7cfa071

feat: add cgroup mode to node system config feat: add support to modify kubelet pod pid limit in node system configuration feat: support Tier 1 bandwidth feat: support IPV6 Dual Stack (stack_type) feat: add Binauthz Evaluation mode support to GKE Classic feat: support GKE Cost Allocations feat: add network tags to autopilot cluster feat: add protect config audit api feat: support enabling Confidential Nodes in the node pool feat: support node pool blue-green upgrade feat: add Location Policy API feat: support GPU timesharing
  PiperOrigin-RevId: 458322449
  Source-Link: googleapis/googleapis@61ea2e5

docs: minor formatting fixes
  PiperOrigin-RevId: 458309366
  Source-Link: googleapis/googleapis@503fcb1

docs: clarify comment on update_time
  PiperOrigin-RevId: 458304215
  Source-Link: googleapis/googleapis@917762b

feat(assuredworkloads): ITAR June Preview Launch
  Committer: @Guisin
  PiperOrigin-RevId: 458302463
  Source-Link: googleapis/googleapis@523fdaf

build(video/stitcher): correct artifact name for npm
  PiperOrigin-RevId: 458276680
  Source-Link: googleapis/googleapis@1e6c634

fix(gaming): publish v1beta LRO HTTP rules
  PiperOrigin-RevId: 458259504
  Source-Link: googleapis/googleapis@181b856

docs(dialogflow/cx): improve comments for protos
  PiperOrigin-RevId: 458250124
  Source-Link: googleapis/googleapis@913b9bd

fix(security/privateca): publish v1beta1 LRO HTTP rules
  PiperOrigin-RevId: 458248734
  Source-Link: googleapis/googleapis@e63fcd7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing "return" and improve comment in TransactionRunnerImpl

3 participants