Skip to content

Commit

Permalink
Add isnothing(fig_path) check
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasWMRitchie committed Jul 13, 2022
1 parent b669a14 commit b022a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function run_doc(
cd_back()
popdisplay(report) # ensure display pops out even if internal error occurs
# Temporary fig_path is not automatically removed because it contains files so...
startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
!isnothing(fig_path) && startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
end

return doc
Expand Down

0 comments on commit b022a54

Please sign in to comment.