Skip to content

Commit

Permalink
Improve names and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Nov 14, 2021
1 parent 1e0c802 commit 5028396
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public static CommentsInfo getInfo(final String url) throws IOException, Extract
return getInfo(NewPipe.getServiceByUrl(url), url);
}

public static CommentsInfo getInfo(final StreamingService serviceByUrl, final String url)
public static CommentsInfo getInfo(final StreamingService service, final String url)
throws ExtractionException, IOException {
return getInfo(serviceByUrl.getCommentsExtractor(url));
return getInfo(service.getCommentsExtractor(url));
}

public static CommentsInfo getInfo(final CommentsExtractor commentsExtractor)
Expand Down Expand Up @@ -63,7 +63,7 @@ public static InfoItemsPage<CommentsInfoItem> getMoreItems(
final StreamingService service,
final CommentsInfo commentsInfo,
final Page page) throws IOException, ExtractionException {
if (null == commentsInfo.getCommentsExtractor()) {
if (commentsInfo.getCommentsExtractor() == null) {
commentsInfo.setCommentsExtractor(service.getCommentsExtractor(commentsInfo.getUrl()));
commentsInfo.getCommentsExtractor().fetchPage();
}
Expand Down

0 comments on commit 5028396

Please sign in to comment.