aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/eval.c b/eval.c
index d7735205..5b4418b8 100644
--- a/eval.c
+++ b/eval.c
@@ -942,18 +942,16 @@ set_LINT()
if (lintlen == 5 && strncmp(lintval, "fatal", 5) == 0)
lintfunc = r_fatal;
else if (lintlen == 7 && strncmp(lintval, "invalid", 7) == 0) {
- do_flags &= ~ DO_LINT_ALL;
+ do_flags &= ~DO_LINT_ALL;
do_flags |= DO_LINT_INVALID;
}
} else {
do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
}
- } else {
- if (! iszero(n))
- do_flags |= DO_LINT_ALL;
- else
- do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
- }
+ } else if (! iszero(n))
+ do_flags |= DO_LINT_ALL;
+ else
+ do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
/* explicitly use warning() here, in case lintfunc == r_fatal */
if (old_lint != do_lint && old_lint && ! do_lint)