Skip to content

Commit

Permalink
Remove redundant errno checks
Browse files Browse the repository at this point in the history
these functions don't fail...
  • Loading branch information
time-killer-games authored Feb 22, 2024
1 parent 2afc1b7 commit e1ea710
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/boost/process/v2/ext/impl/cwd.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,14 @@ filesystem::path cwd(boost::process::v2::pid_type pid, boost::system::error_code
path = filesystem::canonical(fst->fs_path, ec);
}
procstat_freefiles(proc_stat, head);
if (errno)
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
}
else
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
procstat_freeprocs(proc_stat, proc_info);
if (errno)
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
}
else
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
procstat_close(proc_stat);
if (errno)
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
}
else
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec)
Expand Down

0 comments on commit e1ea710

Please sign in to comment.