mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 16:38:42 +08:00
fix: result
This commit is contained in:
1 parent
1d65287fbb
commit
8ff22bc737
2 files changed
+6
-6
No files matched your search
@@ -438,8 +438,8 @@ impl Profiles {
|
||||
}
|
||||
|
||||
/// gen the enhanced profiles
|
||||
pub fn gen_enhanced(&self) -> PrfEnhanced {
|
||||
let current = self.gen_activate().unwrap();
|
||||
pub fn gen_enhanced(&self) -> Result<PrfEnhanced> {
|
||||
let current = self.gen_activate()?;
|
||||
|
||||
let chain = match self.chain.as_ref() {
|
||||
Some(chain) => chain
|
||||
@@ -454,7 +454,7 @@ impl Profiles {
|
||||
None => vec![],
|
||||
};
|
||||
|
||||
PrfEnhanced { current, chain }
|
||||
Ok(PrfEnhanced { current, chain })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user