replace callback by RSSQueryResult object

This commit is contained in:
Shinokuni 2019-03-12 16:23:14 +01:00
parent 710eb18dc0
commit 604c56ebc0

View File

@ -133,8 +133,7 @@ public class RSSQuery {
if (type == RSSType.RSS_UNKNOWN) {
RSSType contentType = getContentRSSType(xml);
if (contentType == RSSType.RSS_UNKNOWN) {
callback.onSyncFailure(new Exception("Unknown content format"));
return null;
return new RSSQueryResult(new Exception("Unknown content format"));
} else
type = contentType;
}