mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: result
This commit is contained in:
@@ -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