We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec6952 commit eee41afCopy full SHA for eee41af
crates/volta-core/src/hook/serial.rs
@@ -87,10 +87,9 @@ impl RawResolveHook {
87
impl RawIndexHook {
88
pub fn into_index_hook(self, base_dir: &Path) -> Fallible<tool::YarnIndexHook> {
89
// use user-specified format, or default to Github (legacy)
90
- let format = if let Some(format_str) = self.format {
91
- RegistryFormat::from_str(&format_str)?
92
- } else {
93
- RegistryFormat::Github
+ let format = match self.format {
+ Some(format_str) => RegistryFormat::from_str(&format_str)?,
+ None => RegistryFormat::Github,
94
};
95
Ok(tool::YarnIndexHook {
96
format,
0 commit comments