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

Fix usage of Tab#installed_(on_request|as_dependency) #19087

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

MikeMcQuaid
Copy link
Member

These can return true, false or nil so adjust the signature to note this and fix the call sites to ensure we don't accidentally pass through nil values when we shouldn't.

While we're here, make a TODO to fix this bad API up in future.

Fixes #19076

These can return `true`, `false` or `nil` so adjust the signature to
note this and fix the call sites to ensure we don't accidentally pass
through `nil` values when we shouldn't.

While we're here, make a `TODO` to fix this bad API up in future.

Fixes #19076
@MikeMcQuaid MikeMcQuaid enabled auto-merge January 13, 2025 09:26
@carlocab
Copy link
Member

Probably worth fixing that TODO as soon as the new release goes out.

@MikeMcQuaid
Copy link
Member Author

Probably worth fixing that TODO as soon as the new release goes out.

@carlocab It's been present for several years at this point so would need a slightly more involved/thoughtful refactoring, unfortunately.

(that's my way of saying "I won't be able to do this as soon as the new release goes out")

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jan 13, 2025
@MikeMcQuaid
Copy link
Member Author

@carlocab It's been present for several years at this point so would need a slightly more involved/thoughtful refactoring, unfortunately.

To elaborate a bit on this: normally nil == false with these sort of APIs. In this case, it means "we don't have any stored data so: we're not sure". That means it probably doesn't make sense to either unconditionally make nil values be either true or false across the codebase.

Merged via the queue into master with commit 730c93e Jan 13, 2025
28 checks passed
@MikeMcQuaid MikeMcQuaid deleted the installed_on_request_true branch January 13, 2025 09:46
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.

FFmpeg installation fail
3 participants