Unecessary return statement
parse method sets a globally available variable, therefore does not need to return a string
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user