Remove checks which are always true

This commit is contained in:
TobiGr 2021-03-14 00:45:44 +01:00
parent 46eab1ec17
commit b9282bbe94
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ public class PeertubeAccountExtractor extends ChannelExtractor {
}
final Response response = downloader.get(accountUrl);
if (response != null && response.responseBody() != null) {
if (response != null) {
setInitialData(response.responseBody());
} else {
throw new ExtractionException("Unable to extract PeerTube account data");

View File

@ -136,7 +136,7 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
public void onFetchPage(final Downloader downloader) throws IOException, ExtractionException {
final Response response = downloader.get(
baseUrl + PeertubeChannelLinkHandlerFactory.API_ENDPOINT + getId());
if (response != null && response.responseBody() != null) {
if (response != null ) {
setInitialData(response.responseBody());
} else {
throw new ExtractionException("Unable to extract PeerTube channel data");

View File

@ -364,7 +364,7 @@ public class PeertubeStreamExtractor extends StreamExtractor {
@Override
public void onFetchPage(final Downloader downloader) throws IOException, ExtractionException {
final Response response = downloader.get(baseUrl + PeertubeStreamLinkHandlerFactory.VIDEO_API_ENDPOINT + getId());
if (response != null && response.responseBody() != null) {
if (response != null) {
setInitialData(response.responseBody());
} else {
throw new ExtractionException("Unable to extract PeerTube channel data");