Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

cleanup: remove clutter from some samples#1231

Merged
coryan merged 1 commit intogoogleapis:masterfrom
coryan:cleanup-samples
Feb 1, 2020
Merged

cleanup: remove clutter from some samples#1231
coryan merged 1 commit intogoogleapis:masterfrom
coryan:cleanup-samples

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Feb 1, 2020

When possible use single-line if(..) throw.. to handler errors, and
avoid introducing StatusOr unless we really use it.


This change is Reviewable

When possible use single-line `if(..) throw..` to handler errors, and
avoid introducing `StatusOr` unless we really use it.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 1, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 1, 2020

Codecov Report

Merging #1231 into master will increase coverage by 0.1%.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1231     +/-   ##
========================================
+ Coverage    94.8%   94.9%   +0.1%     
========================================
  Files         185     185             
  Lines       13851   13822     -29     
========================================
- Hits        13131   13118     -13     
+ Misses        720     704     -16
Impacted Files Coverage Δ
google/cloud/spanner/samples/samples.cc 87.57% <0%> (+1.04%) ⬆️
google/cloud/spanner/value.h 92.8% <0%> (-0.11%) ⬇️
.../spanner/benchmarks/multiple_rows_cpu_benchmark.cc 92.38% <0%> (+0.01%) ⬆️
google/cloud/spanner/internal/spanner_stub.cc 70.65% <0%> (+1.08%) ⬆️

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 66b4780...bf6de8c. Read the comment docs.

@coryan coryan marked this pull request as ready for review February 1, 2020 15:37
@coryan coryan merged commit e07fd0d into googleapis:master Feb 1, 2020
@coryan coryan deleted the cleanup-samples branch February 1, 2020 18:57
devjgm pushed a commit to devjgm/google-cloud-cpp that referenced this pull request May 7, 2020
…p-spanner#1231)

When possible use single-line `if(..) throw..` to handler errors, and
avoid introducing `StatusOr` unless we really use it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants