Skip to content

Commit 2293a82

Browse files
committed
Minor refactoring
1 parent 984e2f5 commit 2293a82

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/core/study.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,11 @@ struct Study{F,S,J}
7979
check_jobpaths_unique(jobpaths)
8080
sim_success = fill(false, length(jobs))
8181
logfile = joinpath(root, "study_log.log")
82-
st = new{F,S,J}(jobcreator, setups, jobs, jobpaths, root, logfile, sim_success)
82+
study = new{F,S,J}(jobcreator, setups, jobs, jobpaths, root, logfile, sim_success)
8383
# If a logfile already exists from a previous run, initialize sim_success
8484
# from the logfile so processing or resuming works across interrupted runs.
85-
if isfile(st.logfile)
86-
try
87-
update_sim_success_from_log!(st)
88-
catch err
89-
@warn "failed to refresh study status from logfile" error=err
90-
end
91-
end
92-
return st
85+
isfile(logfile) && update_sim_success_from_log!(study)
86+
return study
9387
end
9488
end
9589

0 commit comments

Comments
 (0)