summaryrefslogtreecommitdiff
path: root/src/authenticate.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-06-20 09:04:33 -0400
committerMica White <botahamec@outlook.com>2026-06-20 09:04:33 -0400
commit1897aa4c604a0d9ab81f84dbff687b7f42bc1f0f (patch)
tree8ed0db5fc0342dc221bb63e431d4012ec7c27c3b /src/authenticate.rs
parent230a1e6987a322077f4b7ed16392ef4372285307 (diff)
Reduce CPU usageHEADmain
Diffstat (limited to 'src/authenticate.rs')
-rw-r--r--src/authenticate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authenticate.rs b/src/authenticate.rs
index fab33a2..66bfded 100644
--- a/src/authenticate.rs
+++ b/src/authenticate.rs
@@ -11,8 +11,8 @@ pub struct Inquirer<'a>(pub &'a Config);
fn config_value(git_config: &git2::Config, name: &str) -> Option<String> {
git_config
.get_entry(name)
- .ok()
.and_then(|entry| entry.value().map(|entry| entry.to_string()))
+ .ok()
}
fn prompt_secret(message: &str) -> Result<String, InquireError> {