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

Remove bad annotation from GasMinerSystem #29641

Merged

Conversation

irismessage
Copy link
Contributor

The NotNullWhen was making Rider's linter show an error

I don't think it was applicable because CapSpawnAmount returns a float and NotNullWhen only deals with a boolean.

The NotNullWhen was making Rider's linter show an error
@irismessage irismessage requested a review from Partmedia as a code owner July 1, 2024 16:18
@github-actions github-actions bot added the S: Needs Review Status: Requires additional reviews before being fully accepted label Jul 1, 2024
@Partmedia
Copy link
Contributor

Thanks for the fix. This function used to return a bool and so that is why this is there. Since the only caller already does a null check (line 31) I agree that this is safe to remove.

@Partmedia Partmedia added the Changes: Atmospherics Code Changes: Might require knowledge of atmospherics code & calculations. label Jul 1, 2024
@Partmedia Partmedia merged commit ed2789a into space-wizards:master Jul 1, 2024
13 checks passed
@irismessage irismessage deleted the gasminersystem-bad-annotation branch July 3, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: Atmospherics Code Changes: Might require knowledge of atmospherics code & calculations. S: Needs Review Status: Requires additional reviews before being fully accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants