Unecessary return statement
parse method sets a globally available variable, therefore does not need to return a string
This commit is contained in:
parent
b0cafe0f69
commit
04673485b4
@ -26,7 +26,7 @@ public class PandaRequest {
|
|||||||
.join();
|
.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String parse(String response) {
|
public static void parse(String response) {
|
||||||
String mod = "[ " + response + " ]";
|
String mod = "[ " + response + " ]";
|
||||||
JSONArray ja = new JSONArray(mod);
|
JSONArray ja = new JSONArray(mod);
|
||||||
|
|
||||||
@ -34,7 +34,5 @@ public class PandaRequest {
|
|||||||
JSONObject jo = ja.getJSONObject(i);
|
JSONObject jo = ja.getJSONObject(i);
|
||||||
url = jo.getString("link");
|
url = jo.getString("link");
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user