mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-11-07 10:43:48 +00:00
Use reqireContext(), requireActivity() instead of getters
This commit is contained in:
@@ -91,7 +91,7 @@ public class ImportExportJsonHelperTest {
|
||||
final List<SubscriptionItem> itemsFromFile = ImportExportJsonHelper.readFrom(
|
||||
inputStream, null);
|
||||
|
||||
if (itemsFromFile == null || itemsFromFile.isEmpty()) {
|
||||
if (itemsFromFile.isEmpty()) {
|
||||
fail("ImportExportJsonHelper.readFrom(input) returned a null or empty list");
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class ImportExportJsonHelperTest {
|
||||
final List<SubscriptionItem> secondReadItems = ImportExportJsonHelper.readFrom(
|
||||
inputStream, null);
|
||||
|
||||
if (secondReadItems == null || secondReadItems.isEmpty()) {
|
||||
if (secondReadItems.isEmpty()) {
|
||||
fail("second call to readFrom returned an empty list");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user