]> git.kaiwu.me - njs.git/commitdiff
HTTP: removed dead code introduced in 0ffc96df7.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 14 May 2026 00:33:35 +0000 (17:33 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 14 May 2026 16:29:24 +0000 (09:29 -0700)
Found by Coverity (CID 1692699).

nginx/ngx_http_js_module.c

index 4e351f7ca5a1194a4897f34067649c1c254633d8..29333fc11c7025fbab53fee8d9ea4dc46f9e30cb 100644 (file)
@@ -4114,9 +4114,6 @@ ngx_http_js_ext_request_form_for_each(njs_vm_t *vm, njs_value_t *args,
     }
 
     this_arg = njs_arg(args, nargs, 2);
-    if (this_arg == NULL) {
-        this_arg = njs_value_arg(&njs_value_undefined);
-    }
 
     entry = form->entries.elts;