Replies: 2 comments 1 reply
-
pkg:is_installed might throw if get_package returns a nil value, but yeah, a check on the pkg before is_installed could mitigate that. That's the only significant difference I see. Not sure if that's even possible,, considering it's being called within that loop on the packages within is_outdated, but maybe there are other uses elsewhere that aren't guaranteed? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've now moved past this topic, that part is already migrated, tested and works well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate nvim-java to Mason 2.0 but I'm finding some difficulties understanding the current code.
Can somebody explain what's the difference between
utils.mason:
and
and why is there so much code duplication:
I don't see those used anywhere else, why isn't the logic directly in
is_outdated
? And why are those functions 90% identical? Especially after being migrated I struggle to find the difference and why there are two of them doing almost the same.Beta Was this translation helpful? Give feedback.
All reactions