-
Notifications
You must be signed in to change notification settings - Fork 11
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 a JET warning #44
Conversation
In the 'else' path, JET cannot prove that SCRATCH_DIR_OVERRIDE[] is (still) 'nothing', and thus reports a possible error. This then is also shown when analyzing packages that use Scratch. This can be resolved by assigning it first to a temporary variable.
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
==========================================
+ Coverage 87.61% 87.73% +0.11%
==========================================
Files 1 1
Lines 105 106 +1
==========================================
+ Hits 92 93 +1
Misses 13 13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hmm, seems Scratch is broken on Julia nightly? |
@staticfloat @fredrikekre @giordano any concerns about this PR? Otherwise I'd like to merge it and make a new release, to get my package "JET clean" ;-) |
Looks good to me. |
Looks fine to me; shall we add a JET pass to the CI in a follow-on PR so that we don't accidentally regress it? |
@staticfloat I've added JET to the test suite, let me know if that's what you had in mind. |
In the 'else' path, JET cannot prove that SCRATCH_DIR_OVERRIDE[] is
(still) 'nothing', and thus reports a possible error. This then is also
shown when analyzing packages that use Scratch. This can be resolved by
assigning it first to a temporary variable.