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 error print from XRServer.find_interface #80730

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

aaronfranke
Copy link
Member

This PR removes the error print from the XRServer.find_interface() method. It is a valid (and expected?) workflow to check if an interface exists by running this method, so we should not print an error, just return null.

Also, this PR simplifies the logic, since int idx is not needed.

@aaronfranke aaronfranke added this to the 4.2 milestone Aug 17, 2023
@aaronfranke aaronfranke requested a review from a team as a code owner August 17, 2023 18:38
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

I agree with this change!

The code looks good to me too - I was a little thrown off by the return nullptr thing, but it seems fine.

servers/xr_server.cpp Outdated Show resolved Hide resolved
Co-authored-by: David Snopek <dsnopek@gmail.com>
@akien-mga akien-mga merged commit d7f0f39 into godotengine:master Aug 17, 2023
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the xr-find-interface branch August 17, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants