From 5c13acad6687f77e0a8f4feaf74ac02d5086625d Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Sun, 10 Apr 2011 02:25:41 +0000
Subject: [PATCH] protocol_defs: remove duplicate/identical test

This removes a duplicated test statement which appears identically twice.
---
 src/common/slurm_protocol_defs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c
index a6b610ef69f..f123b47b7da 100644
--- a/src/common/slurm_protocol_defs.c
+++ b/src/common/slurm_protocol_defs.c
@@ -1135,8 +1135,6 @@ int job_state_num(const char *state_name)
 			return i;
 	}
 
-	if (_job_name_test(JOB_COMPLETING, state_name))
-		return JOB_COMPLETING;
 	if (_job_name_test(JOB_COMPLETING, state_name))
 		return JOB_COMPLETING;
 	if (_job_name_test(JOB_RESIZING, state_name))
-- 
GitLab