Commit Diff


commit - 1552435e8b0c7c7d4bcbb29087e912debeed3388
commit + c2f5b3e63df878c687928a616ef24e87131a795e
blob - bfa4196c0e8567ef2f39a75f00ecb2035126601b
blob + 8cc103e1ce5dd08b81df1be04fee1d2d01c8f66c
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -579,12 +579,8 @@ gotweb_assign_querystring(struct querystring *qs, char
 			for (a_cnt = 0; a_cnt < nitems(action_keys); a_cnt++) {
 				if (strcmp(value, action_keys[a_cnt].name) != 0)
 					continue;
-				else if (strcmp(value,
-				    action_keys[a_cnt].name) == 0){
-					qs->action =
-					    action_keys[a_cnt].action;
-					goto qa_found;
-				}
+				qs->action = action_keys[a_cnt].action;
+				goto qa_found;
 			}
 			qs->action = ERR;
 qa_found: