Skip to content

Commit

Permalink
Fix dangling else logic
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Aug 25, 2023
1 parent b2df82c commit e7bc23e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/clib/lib/job_queue/lsf_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,18 +454,17 @@ static void lsf_driver_update_bjobs_table(lsf_driver_type *driver) {
char *job_id = (char *)util_alloc_sprintf("%d", job_id_int);
// Consider only jobs submitted by this ERT instance - not
// old jobs lying around from the same user.
if (hash_has_key(driver->my_jobs, job_id))
if (hash_has_key(driver->my_jobs, job_id)) {
if (auto found_status = status_map.find(status);
found_status != status_map.end())
hash_insert_int(driver->bjobs_cache, job_id,
found_status->second);
else {
else
util_exit("The lsf_status:%s for job:%s is not "
"recognized; call your "
"LSF administrator - sorry :-( \n",
status, job_id);
}

}
free(job_id);
}
free(line);
Expand Down

0 comments on commit e7bc23e

Please sign in to comment.