do not get JSONArray results twice
This commit is contained in:
parent
61830e93f5
commit
a8f6901cc7
@ -109,7 +109,7 @@ public class ArchDistribution implements Distribution {
|
|||||||
futurePackage.complete(null);
|
futurePackage.complete(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
JSONObject resultJson = json.getJSONArray("results").getJSONObject(0);
|
JSONObject resultJson = resultsArrayJson.getJSONObject(0);
|
||||||
|
|
||||||
// get infos except dependencies
|
// get infos except dependencies
|
||||||
name = resultJson.getString("pkgname");
|
name = resultJson.getString("pkgname");
|
||||||
|
Loading…
Reference in New Issue
Block a user