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

Fix needless returns in CloudWatch driver #19

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

miceg
Copy link
Contributor

@miceg miceg commented Sep 4, 2024

I've got another PR with some refactoring that fixes the other needless returns.

src/drivers/cloudwatch.rs Outdated Show resolved Hide resolved
* Use explicit returns if there's a return somewhere else in the function.

* Return an error if a log group couldn't be created.

* Make failure to set a retention policy a warning message (was already not
  a hard error).

* Map `SdkError` to service errors to remove some nested `match` statements.
@miceg miceg force-pushed the upstream-cloudwatch-needless-returns branch from 9acb373 to deae5eb Compare September 4, 2024 06:58
@dacbd dacbd merged commit f94d075 into dacbd:main Sep 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants