mirror of
https://github.com/readrops/Readrops.git
synced 2025-02-09 16:38:40 +01:00
replace callback by RSSQueryResult object
This commit is contained in:
parent
710eb18dc0
commit
604c56ebc0
@ -133,8 +133,7 @@ public class RSSQuery {
|
|||||||
if (type == RSSType.RSS_UNKNOWN) {
|
if (type == RSSType.RSS_UNKNOWN) {
|
||||||
RSSType contentType = getContentRSSType(xml);
|
RSSType contentType = getContentRSSType(xml);
|
||||||
if (contentType == RSSType.RSS_UNKNOWN) {
|
if (contentType == RSSType.RSS_UNKNOWN) {
|
||||||
callback.onSyncFailure(new Exception("Unknown content format"));
|
return new RSSQueryResult(new Exception("Unknown content format"));
|
||||||
return null;
|
|
||||||
} else
|
} else
|
||||||
type = contentType;
|
type = contentType;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user