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

Solar system backend #241

Merged
merged 5 commits into from
Mar 21, 2022
Merged

Solar system backend #241

merged 5 commits into from
Mar 21, 2022

Conversation

alexanderson1993
Copy link
Member

Description

Related Issue

How do you know the changes work correctly?

Screenshots (if appropriate):

Types of changes

  • Docs Change (changes were only made to documentation)
  • Refactor (non-breaking change which improves code)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    change)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the built-in project documentation.
  • My change adds dependencies to this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@alexanderson1993 alexanderson1993 marked this pull request as draft March 2, 2022 23:36
if (params.atmosphericComposition) {
planet.isPlanet.atmosphericComposition = params.atmosphericComposition;
}
if (params.hasClouds) {
Copy link
Member Author

Choose a reason for hiding this comment

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

With any of these that could be the number 0, if the user passes 0 as the updated value, the if statements won't run. You should check to see if the property exists using the in operator, or you can check if the typeof is number.

@alexanderson1993 alexanderson1993 marked this pull request as ready for review March 19, 2022 23:38
@alexanderson1993 alexanderson1993 merged commit 8f1038d into develop Mar 21, 2022
@alexanderson1993 alexanderson1993 deleted the solar-system-backend branch March 21, 2022 23:05
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