Skip to content

fix: ignore nil errors in validationResponseOk#227

Merged
TylerGillson merged 1 commit intomainfrom
fix/validation-response
Sep 11, 2024
Merged

fix: ignore nil errors in validationResponseOk#227
TylerGillson merged 1 commit intomainfrom
fix/validation-response

Conversation

@TylerGillson
Copy link
Member

Issue

N/A

Description

We pre-populate ValidationRuleErrors with nils and update them by index in Finalize. Therefore we need to ignore nils 🤦🏼

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner September 11, 2024 22:57
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Sep 11, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 11, 2024
@codecov
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
+ Coverage   53.13%   53.16%   +0.03%     
==========================================
  Files          46       46              
  Lines        6433     6435       +2     
==========================================
+ Hits         3418     3421       +3     
+ Misses       2151     2149       -2     
- Partials      864      865       +1     
Files with missing lines Coverage Δ
pkg/cmd/validator/validator.go 60.07% <100.00%> (+0.09%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@TylerGillson TylerGillson merged commit 26544e2 into main Sep 11, 2024
@TylerGillson TylerGillson deleted the fix/validation-response branch September 11, 2024 23:08
TylerGillson added a commit that referenced this pull request Sep 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.1](v0.2.0...v0.2.1)
(2024-09-11)


### Features

* support for Azure quota rule
([#224](#224))
([8e61091](8e61091))


### Bug Fixes

* ignore nil errors in validationResponseOk
([#227](#227))
([26544e2](26544e2))


### Refactoring

* split ConfigureOrCheckCommand into multiple functions
([#222](#222))
([466413a](466413a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants