From 04673485b41078679177c1c53493d266c4cbf71f Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 2 Feb 2022 19:08:22 -0500 Subject: [PATCH] Unecessary return statement parse method sets a globally available variable, therefore does not need to return a string --- .../constelliabot/util/httpRequests/temp/PandaRequest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/tech/nevets/constelliabot/util/httpRequests/temp/PandaRequest.java b/src/main/java/tech/nevets/constelliabot/util/httpRequests/temp/PandaRequest.java index 0b7370c..de10bee 100644 --- a/src/main/java/tech/nevets/constelliabot/util/httpRequests/temp/PandaRequest.java +++ b/src/main/java/tech/nevets/constelliabot/util/httpRequests/temp/PandaRequest.java @@ -26,7 +26,7 @@ public class PandaRequest { .join(); } - public static String parse(String response) { + public static void parse(String response) { String mod = "[ " + response + " ]"; JSONArray ja = new JSONArray(mod); @@ -34,7 +34,5 @@ public class PandaRequest { JSONObject jo = ja.getJSONObject(i); url = jo.getString("link"); } - - return null; } }