[jruby-joni] 92/223: Simplify.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:21:54 UTC 2015


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

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit be5aa600c74263815d6327bcf856777c989d13e1
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Sun Feb 19 02:52:12 2012 +0100

    Simplify.
---
 src/org/joni/Analyser.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 9586b6e..29147ff 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1344,7 +1344,7 @@ final class Analyser extends Parser {
                 newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
             }
         }
-        return null;
+        return node;
     }
 
     private void nextSetup(Node node, Node nextNode) {
@@ -1857,8 +1857,7 @@ final class Analyser extends Parser {
                 										     AnchorType.ALLOWED_IN_LB);
 
                 if (lbInvalid) newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
-                Node n = setupLookBehind(node);
-                if (n != null) node = n;
+                node = setupLookBehind(node);
                 if (!(node instanceof AnchorNode)) continue restart;
                 setupTree(((AnchorNode)node).target, state);
                 break;
@@ -1869,8 +1868,7 @@ final class Analyser extends Parser {
                                                               AnchorType.ALLOWED_IN_LB);
 
                 if (lbnInvalid) newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
-                n = setupLookBehind(node);
-                if (n != null) node = n;
+                node = setupLookBehind(node);
                 if (!(node instanceof AnchorNode)) continue restart;
                 setupTree(((AnchorNode)node).target, (state | IN_NOT));
                 break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list