Skip to content

clean(apps): merge fns only called by get_app_icon_url#2617

Merged
KernelDeimos merged 1 commit intomainfrom
eric/26350_app-cleanups
Mar 7, 2026
Merged

clean(apps): merge fns only called by get_app_icon_url#2617
KernelDeimos merged 1 commit intomainfrom
eric/26350_app-cleanups

Conversation

@KernelDeimos
Copy link
Copy Markdown
Contributor

Each of these methods is only being called by get_app_icon_url. By changing that ternary operator into an if block with an early return we can move the bodies of these functions here. If one of the former functions ever needs to be used in more than one place, it's easy to extract it out of here agian - for now though let's not pay the cost of jumping to another function definition while trying to understand this code if we're not gaining anything from it.

Each of these methods is only being called by get_app_icon_url. By
changing that ternary operator into an `if` block with an early return
we can move the bodies of these functions here. If one of the former
functions ever needs to be used in more than one place, it's easy to
extract it out of here agian - for now though let's not pay the cost of
jumping to another function definition while trying to understand this
code if we're not gaining anything from it.
@KernelDeimos
Copy link
Copy Markdown
Contributor Author

I wanted to add more to this PR but I'll get this in for now and PR further changes later, since this approach reduces the chances of a merge conflict in the future.

@KernelDeimos KernelDeimos merged commit 0fa0340 into main Mar 7, 2026
4 checks passed
@jelveh jelveh deleted the eric/26350_app-cleanups branch May 1, 2026 20:00
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.

1 participant