patch 8.0.1484: reduntant conditions
Problem: Reduntant conditions.
Solution: Remove them. (Dominique Pelle)
diff --git a/src/terminal.c b/src/terminal.c
index 56c250b..02d0715 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -523,7 +523,7 @@
init_job_options(&opt);
cmd = eap->arg;
- while (*cmd && *cmd == '+' && *(cmd + 1) == '+')
+ while (*cmd == '+' && *(cmd + 1) == '+')
{
char_u *p, *ep;
@@ -3259,8 +3259,7 @@
return;
/* Get the job status, this will detect a job that finished. */
- if ((buf->b_term->tl_job->jv_channel == NULL
- || !buf->b_term->tl_job->jv_channel->ch_keep_open)
+ if (!buf->b_term->tl_job->jv_channel->ch_keep_open
&& STRCMP(job_status(buf->b_term->tl_job), "dead") == 0)
{
/* The job is dead, keep reading channel I/O until the channel is