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:
parent
e3f31ee36f
commit
a6a7c15611
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue