mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 06:10:33 +05:30
Bandcamp: Improve code style
This commit is contained in:
parent
ea49202f64
commit
27e7aad159
@ -9,6 +9,7 @@ import com.grack.nanojson.JsonWriter;
|
||||
import org.schabi.newpipe.extractor.NewPipe;
|
||||
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||||
import org.schabi.newpipe.extractor.exceptions.ReCaptchaException;
|
||||
import org.schabi.newpipe.extractor.utils.Utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
@ -87,7 +88,7 @@ public class BandcampExtractorHelper {
|
||||
// Remove empty strings
|
||||
ArrayList<String> list = new ArrayList<>(Arrays.asList(strings));
|
||||
for (int i = list.size() - 1; i >= 0; i--) {
|
||||
if (list.get(i) == null || list.get(i).isEmpty() || list.get(i).equals("null")) {
|
||||
if (Utils.isNullOrEmpty(list) || list.get(i).equals("null")) {
|
||||
list.remove(i);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user