From 9410ea806c6eeeb91e85d19d9d0a5f326781649b Mon Sep 17 00:00:00 2001 From: MetaPrime Date: Tue, 9 May 2017 14:57:39 -0700 Subject: [PATCH] Revert style change which hurt readability. --- .../com/rarchives/ripme/ripper/rippers/RedditRipper.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java index 903fe3d1..067e7866 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java @@ -171,12 +171,11 @@ public class RedditRipper extends AlbumRipper { Pattern p = RipUtils.getURLRegex(); Matcher m = p.matcher(body); while (m.find()) { - String foundurl; - foundurl = m.group(1); - while (foundurl.endsWith(")")) { - foundurl = foundurl.substring(0, foundurl.length() - 1); + String url = m.group(1); + while (url.endsWith(")")) { + url = url.substring(0, url.length() - 1); } - handleURL(foundurl, id); + handleURL(url, id); } }