Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Conversation

tylerslaton
Copy link
Contributor

@tylerslaton tylerslaton commented Jan 10, 2024

Prior to this PR we had the potential to panic when validating the creation of the public compute class types. This PR addresses that issue and refactors for readbility.

For #2401

Checklist

  • The title of this PR would make a good line in Acorn's Release Note's Changelog
  • The title of this PR ends with a link to the main issue being address in parentheses, like: This is a title (#1216). Here's an example
  • All relevant issues are referenced in the PR description. NOTE: don't use GitHub keywords that auto-close issues
  • Commits follow contributing guidance
  • Automated tests added to cover the changes. If tests couldn't be added, an explanation is provided in the Verification and Testing section
  • Changes to user-facing functionality, API, CLI, and upgrade impacts are clearly called out in PR description
  • PR has at least two approvals before merging (or a reasonable exception, like it's just a docs change)

…quests

Signed-off-by: tylerslaton <mtslaton1@gmail.com>
Comment on lines +146 to +148
if resources == nil {
return nil
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the critical logic

@tylerslaton tylerslaton marked this pull request as ready for review January 10, 2024 15:12
@tylerslaton tylerslaton merged commit 43dbcbf into acorn-io:main Jan 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants