diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-11 12:52:46 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-11 13:05:57 +0100 |
| commit | df1660b1b78b5881c64c6fadd4ae12c8c01c6684 (patch) | |
| tree | 044bcfc85d3cffe3ede73e1285cacaf30aaa981d /src/lib/git | |
| parent | db17699af4b0ec839b8340766aab91bacf974cd4 (diff) | |
refactor: fix fmt and clippy issues
which potentially were only identified when a dependancy was updated
Diffstat (limited to 'src/lib/git')
| -rw-r--r-- | src/lib/git/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs index 72717f7..00d84f6 100644 --- a/src/lib/git/mod.rs +++ b/src/lib/git/mod.rs | |||
| @@ -685,11 +685,7 @@ impl RepoActions for Repo { | |||
| 685 | /// setting global to None will suppliment local config with global items | 685 | /// setting global to None will suppliment local config with global items |
| 686 | /// not in local | 686 | /// not in local |
| 687 | fn get_git_config_item(&self, item: &str, global: Option<bool>) -> Result<Option<String>> { | 687 | fn get_git_config_item(&self, item: &str, global: Option<bool>) -> Result<Option<String>> { |
| 688 | let just_global = if let Some(just_global) = global { | 688 | let just_global = global.unwrap_or(false); |
| 689 | just_global | ||
| 690 | } else { | ||
| 691 | false | ||
| 692 | }; | ||
| 693 | match if just_global { | 689 | match if just_global { |
| 694 | self.git_repo | 690 | self.git_repo |
| 695 | .config() | 691 | .config() |