Skip to content

Commit

Permalink
chore: remove useless ok
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Oct 28, 2024
1 parent 8deaad2 commit 4fa4066
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/cron/src/tasks/check_feed_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub async fn check_feed_item(

Ok(())
},
None => Ok(create_feed_item(item, user, data, top_level).await?),
None => create_feed_item(item, user, data, top_level).await,
}
}

Expand Down
6 changes: 3 additions & 3 deletions crates/feed/src/user_feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ impl UserFeed {
match self {
Self {
json: Some(url), ..
} => Ok(UserFeedTopLevel::parse_json_feed(url.clone()).await?),
} => UserFeedTopLevel::parse_json_feed(url.clone()).await,
Self {
atom: Some(url), ..
} => Ok(UserFeedTopLevel::parse_xml_feed(url.clone()).await?),
Self { rss: Some(url), .. } => Ok(UserFeedTopLevel::parse_xml_feed(url.clone()).await?),
} => UserFeedTopLevel::parse_xml_feed(url.clone()).await,
Self { rss: Some(url), .. } => UserFeedTopLevel::parse_xml_feed(url.clone()).await,
Self {
json: None,
atom: None,
Expand Down
2 changes: 1 addition & 1 deletion crates/feed/src/user_feed_top_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl UserFeedTopLevel {
..self
};

Ok(Self::get_full(feed).await?)
Self::get_full(feed).await
},
None => Ok(self),
}
Expand Down

0 comments on commit 4fa4066

Please sign in to comment.