Skip to content

Commit

Permalink
fix: add check for nothing as manifest file in active_project_watcher
Browse files Browse the repository at this point in the history
Since `manifest_file()` can return `nothing` as well, add a check/guard
for when it's `nothing` in `active_project_watcher`.
  • Loading branch information
thazhemadam committed Sep 28, 2023
1 parent 83200b2 commit af74cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkgs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ end

function active_project_watcher()
mfile = manifest_file()
if mfile watched_manifests
if !isnothing(mfile) && mfile watched_manifests
push!(watched_manifests, mfile)
wmthunk = TaskThunk(watch_manifest, (mfile,))
schedule(Task(wmthunk))
Expand Down

0 comments on commit af74cc6

Please sign in to comment.