mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Replace fori with foreach loop
This commit is contained in:
parent
f71bd29d58
commit
9bc7a470ab
@ -38,9 +38,8 @@ public class BandcampSuggestionExtractor extends SuggestionExtractor {
|
|||||||
|
|
||||||
ArrayList<String> suggestions = new ArrayList<>();
|
ArrayList<String> suggestions = new ArrayList<>();
|
||||||
|
|
||||||
for (int i = 0; i < jsonArray.size(); i++) {
|
for (Object fuzzyResult : jsonArray) {
|
||||||
JsonObject fuzzyResult = jsonArray.getObject(i);
|
String res = ((JsonObject) fuzzyResult).getString("name");
|
||||||
String res = fuzzyResult.getString("name");
|
|
||||||
|
|
||||||
if (!suggestions.contains(res)) suggestions.add(res);
|
if (!suggestions.contains(res)) suggestions.add(res);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user