[njs] Improved file mode in CLI.

Dmitry Volyntsev xeioex at nginx.com
Mon Jul 2 15:04:20 UTC 2018


details:   http://hg.nginx.org/njs/rev/135f33d06df5
branches:  
changeset: 550:135f33d06df5
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Jul 02 18:03:43 2018 +0300
description:
Improved file mode in CLI.

Reporting of the return value of the last expression is disabled.

diffstat:

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

diffs (14 lines):

diff -r 4afaf9e2804c -r 135f33d06df5 njs/njs_shell.c
--- a/njs/njs_shell.c	Tue Jun 26 18:30:10 2018 +0700
+++ b/njs/njs_shell.c	Mon Jul 02 18:03:43 2018 +0300
@@ -390,10 +390,6 @@ njs_process_file(njs_opts_t *opts, njs_v
         goto done;
     }
 
-    if (!opts->disassemble) {
-        printf("%.*s\n", (int) out.length, out.start);
-    }
-
     ret = NXT_OK;
 
 done:


More information about the nginx-devel mailing list