-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use @static
check to simplify get_loaded_modules
#80
Use @static
check to simplify get_loaded_modules
#80
Conversation
Codecov Report
@@ Coverage Diff @@
## main #80 +/- ##
==========================================
+ Coverage 79.12% 79.57% +0.45%
==========================================
Files 6 6
Lines 570 568 -2
==========================================
+ Hits 451 452 +1
+ Misses 119 116 -3
Continue to review full report at Codecov.
|
Incidentally, the static check makes the function type-stable because we return |
b4a7aa0
to
5e22632
Compare
Bump 🙂 |
5e22632
to
d077ba2
Compare
return Vector{String}[] | ||
end | ||
|
||
!isfile("/proc/modules") && return Vector{SubString{String}}[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like one path returns Vector{String}[]
and the other returns Vector{SubString{String}}[]
. I think we can just safely return Vector{String}[]
in both cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.