[njs] A dead code found by Coverity Scan has been removed.

Igor Sysoev igor at sysoev.ru
Tue Oct 4 08:29:24 UTC 2016


details:   http://hg.nginx.org/njs/rev/1261cc58591e
branches:  
changeset: 188:1261cc58591e
user:      Igor Sysoev <igor at sysoev.ru>
date:      Tue Oct 04 11:28:29 2016 +0300
description:
A dead code found by Coverity Scan has been removed.

diffstat:

 njs/njs_parser_expression.c |  5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diffs (15 lines):

diff -r 8c2cea409034 -r 1261cc58591e njs/njs_parser_expression.c
--- a/njs/njs_parser_expression.c	Fri Sep 30 22:07:07 2016 +0300
+++ b/njs/njs_parser_expression.c	Tue Oct 04 11:28:29 2016 +0300
@@ -971,11 +971,6 @@ njs_parser_call_expression(njs_vm_t *vm,
 
         func->ctor = 0;
 
-        if (token != NJS_TOKEN_OPEN_PARENTHESIS) {
-            parser->node = func;
-            return token;
-        }
-
         token = njs_parser_arguments(vm, parser, func);
         if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
             return token;



More information about the nginx-devel mailing list