import java.net.URI;
import java.net.URISyntaxException;
+import java.util.Collections;
import java.util.List;
import net.pterodactylus.rhynodge.Filter;
return new FailedState();
}
- ComicState comicState = new ComicState();
Comic comic = new Comic(title.or(""));
int imageCounter = 0;
for (String imageUrl : imageUrls) {
throw new IllegalStateException(String.format("Could not resolve image URL ā%sā against base URL ā%sā.", imageUrl, htmlState.uri()), use1);
}
}
- comicState.add(comic);
- return comicState;
+ return new ComicState(Collections.singletonList(comic));
}
//