Hide no_exec behind a function

This commit is contained in:
ridiculousfish
2019-05-12 15:04:18 -07:00
parent be41407610
commit 4fcb9d1fed
6 changed files with 13 additions and 9 deletions

View File

@@ -1019,7 +1019,7 @@ bool exec_job(parser_t &parser, shared_ptr<job_t> j) {
bool exec_error = false;
// If fish was invoked with -n or --no-execute, then no_exec will be set and we do nothing.
if (no_exec) {
if (no_exec()) {
return true;
}