[njs] Style.

Dmitry Volyntsev xeioex at nginx.com
Mon Feb 25 12:38:48 UTC 2019


details:   https://hg.nginx.org/njs/rev/25b394b0e953
branches:  
changeset: 796:25b394b0e953
user:      Artem S. Povalyukhin <artem.povaluhin at gmail.com>
date:      Sat Feb 23 04:20:23 2019 +0300
description:
Style.

diffstat:

 njs/njs_array.c |  30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diffs (40 lines):

diff -r c4522b3d3ff0 -r 25b394b0e953 njs/njs_array.c
--- a/njs/njs_array.c	Fri Feb 22 20:33:31 2019 +0300
+++ b/njs/njs_array.c	Sat Feb 23 04:20:23 2019 +0300
@@ -1406,21 +1406,21 @@ njs_array_prototype_fill(njs_vm_t *vm, n
             }
         }
 
-       if (nargs > 3) {
-           end = args[3].data.u.number;
-
-           if (end > length) {
-               end = length;
-           }
-
-           if (end < 0) {
-               end += length;
-
-               if (end < 0) {
-                   end = 0;
-               }
-           }
-       }
+        if (nargs > 3) {
+            end = args[3].data.u.number;
+
+            if (end > length) {
+                end = length;
+            }
+
+            if (end < 0) {
+                end += length;
+
+                if (end < 0) {
+                    end = 0;
+                }
+            }
+        }
     }
 
     for (i = start; i < end; i++) {


More information about the nginx-devel mailing list