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

feat(next): add DerefOrEmpty func to client. #169

Closed
wants to merge 2 commits into from
Closed

feat(next): add DerefOrEmpty func to client. #169

wants to merge 2 commits into from

Conversation

ikadix
Copy link
Collaborator

@ikadix ikadix commented Jul 3, 2024

The Generated Next Client exposes a lot of values as pointers that will need to be dereferenced to use.

This adds a first pass at a generic function to dereference values, falling back to the empty value for that type if the pointer is nil.

Copy link

codeclimate bot commented Jul 3, 2024

Code Climate has analyzed commit 2b83aa4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 89.3% (-0.5% change).

View more on Code Climate.

@ikadix
Copy link
Collaborator Author

ikadix commented Jul 3, 2024

Likely invalidated by #170

@ikadix ikadix closed this Jul 4, 2024
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.

None yet

1 participant