Skip to content
New issue

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

Client opts fixes #354

Merged
merged 3 commits into from
Sep 25, 2023
Merged

Client opts fixes #354

merged 3 commits into from
Sep 25, 2023

Conversation

joelrebel
Copy link
Member

What does this PR implement/change/remove?

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

The HW model number, product name this change applies to (if applicable)

The BMC firmware and/or BIOS versions that this change applies to (if applicable)

What version of tooling - vendor specific or opensource does this change depend on (if applicable)

Description for changelog/release notes

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Patch coverage: 69.23% and project coverage change: +0.28% 🎉

Comparison is base (fd15a4a) 44.68% compared to head (f0cdcfa) 44.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #354      +/-   ##
==========================================
+ Coverage   44.68%   44.96%   +0.28%     
==========================================
  Files          54       54              
  Lines        4178     4203      +25     
==========================================
+ Hits         1867     1890      +23     
- Misses       2101     2105       +4     
+ Partials      210      208       -2     
Files Changed Coverage Δ
option.go 18.96% <0.00%> (-1.04%) ⬇️
providers/redfish/redfish.go 25.53% <50.00%> (ø)
client.go 59.22% <76.47%> (+4.72%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

client.go Outdated
}

// register ASRR vendorapi provider
func (c *Client) registerASRRProvider() error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this func will never return an error. i would suggest not having any return value.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was mainly keeping the pattern from the above function since I was looking into if these could be turned into an interface method which providers implement to register themselves so this can be moved into each provider.

I can remove the extra error returns for now.

client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
@mergify mergify bot merged commit d2aac70 into main Sep 25, 2023
9 checks passed
@mergify mergify bot deleted the client-opts-fixes branch September 25, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants