[Pkg-javascript-commits] [node-acorn-jsx] 143/484: Formatting

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 411b29791b1e1505ac875bac777b6cd5a6ca07a0
Author: Aparajita Fishman <aparajita at aparajita.com>
Date:   Wed Sep 4 15:58:52 2013 -0400

    Formatting
    
    Just being consistent.
    
    In every other place where a between comparison is done, the lower limit is on the left. It's a whole lot easier to see it's a between comparison when the limits are in order.
---
 acorn.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/acorn.js b/acorn.js
index ade6e3f..3be5cec 100644
--- a/acorn.js
+++ b/acorn.js
@@ -517,13 +517,13 @@
       var ch = input.charCodeAt(tokPos);
       if (ch === 32) { // ' '
         ++tokPos;
-      } else if(ch === 13) {
+      } else if (ch === 13) {
         ++tokPos;
         var next = input.charCodeAt(tokPos);
-        if(next === 10) {
+        if (next === 10) {
           ++tokPos;
         }
-        if(options.locations) {
+        if (options.locations) {
           ++tokCurLine;
           tokLineStart = tokPos;
         }
@@ -531,7 +531,7 @@
         ++tokPos;
         ++tokCurLine;
         tokLineStart = tokPos;
-      } else if(ch < 14 && ch > 8) {
+      } else if (ch > 8 && ch < 14) {
         ++tokPos;
       } else if (ch === 47) { // '/'
         var next = input.charCodeAt(tokPos+1);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list