Skip to content

Commit 173e2b0

Browse files
committed
chore: minor dead code removal
1 parent b708223 commit 173e2b0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/config.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ pub fn configured_project_for_context(resolved_org: Option<&str>) -> Option<Stri
107107
}
108108

109109
pub fn configured_project_id() -> Option<String> {
110-
load().ok().and_then(|cfg| {
111-
config_matches_context(&cfg, None)
112-
.then(|| trimmed_option(cfg.project_id.as_deref()).map(str::to_string))
113-
.flatten()
114-
})
110+
load()
111+
.ok()
112+
.and_then(|cfg| trimmed_option(cfg.project_id.as_deref()).map(str::to_string))
115113
}
116114

117115
pub(crate) fn project_from_config_for_context(

0 commit comments

Comments
 (0)