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

Refactor testGenerateContent_failure_emptyContent with catch let #35

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

andrewheard
Copy link
Collaborator

Refactored testGenerateContent_failure_emptyContent to use catch let GenerateContentError.internalError(underlying: underlyingError), avoiding the nullable variables outside the do/catch.

@github-actions github-actions bot added component:swift sdk Issue/PR related to Swift SDK status:awaiting review PR awaiting review from a maintainer labels Dec 12, 2023
@paulb777 paulb777 mentioned this pull request Dec 12, 2023
@andrewheard andrewheard merged commit 0784866 into main Dec 12, 2023
8 checks passed
@andrewheard andrewheard deleted the ah/empty-content-test branch December 12, 2023 17:49
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:swift sdk Issue/PR related to Swift SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants