Update crates/plugins/src/manifest.rs

Co-authored-by: Ryan Levick <me@ryanlevick.com>
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
This commit is contained in:
Matheus Cardoso 2023-05-15 07:06:08 -03:00 committed by GitHub
parent e3f31ee36f
commit a6a7c15611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -45,11 +45,7 @@ impl PluginManifest {
}
pub fn homepage_url(&self) -> Option<Url> {
self.homepage
.as_deref()
.into_iter()
.flat_map(Url::parse)
.next()
Url::parse(&self.homepage?).ok()
}
pub fn has_compatible_package(&self) -> bool {