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); } }