Unified · Split
| @@ -486,7 +486,7 @@ impl<'event> GitConfig<'event> { · 485 unmodified lines | ||
| 486 | 486 | let key = |
| 487 | 487 | env::var(format!("GIT_CONFIG_KEY_{}", i)).map_err(|_| from_env::Error::InvalidKeyId { key_id: i })?; |
| 488 | 488 | let value = env::var_os(format!("GIT_CONFIG_VALUE_{}", i)) |
| 489 | − .ok_or_else(|| from_env::Error::InvalidValueId { value_id: i })?; | |
| 489 | + .ok_or(from_env::Error::InvalidValueId { value_id: i })?; | |
| 490 | 490 | if let Some((section_name, maybe_subsection)) = key.split_once('.') { |
| 491 | 491 | let (subsection, key) = if let Some((subsection, key)) = maybe_subsection.rsplit_once('.') { |
| 492 | 492 | (Some(subsection), key) |