-
Notifications
You must be signed in to change notification settings - Fork 11
... #131
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
... #131
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -304,6 +304,10 @@ function Base.show(io::IO, ::MIME"text/plain", job::Job) | |||||
| print(io, '\n', " - ", file.filename, " (", file.type, "; ", file.size, " bytes)") | ||||||
| end | ||||||
| end | ||||||
| if job.env == nothing | ||||||
| print(io, "...") | ||||||
| end | ||||||
| break | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Semgrep identified an issue in your code: To resolve this comment: ✨ Commit Assistant fix suggestion
Suggested change
View step-by-step instructions
Alternatively, if you intended to exit from a loop, make sure the
A 💬 Ignore this findingReply with Semgrep commands to ignore this finding.
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by break-or-continue-outside-loop. You can view more details about this finding in the Semgrep AppSec Platform. |
||||||
| if !isempty(job.env) | ||||||
| print(io, '\n', " inputs: ") | ||||||
| for (k, v) in job.env | ||||||
|
|
||||||
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.
Semgrep identified an issue in your code:
comparisons of
nothingshould be made with === or !=== or with isnothing()To resolve this comment:
✨ Commit Assistant fix suggestion
View step-by-step instructions
job.env == nothingwithisnothing(job.env)to properly check ifjob.envisnothing.nothingvalues, use!isnothing(job.env).In Julia,
isnothing()is the recommended approach for testing if a variable isnothing, to avoid unexpected results with type checks.💬 Ignore this finding
Reply with Semgrep commands to ignore this finding.
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasonsAlternatively, triage in Semgrep AppSec Platform to ignore the finding created by compare-nothing.
You can view more details about this finding in the Semgrep AppSec Platform.