summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-20 23:20:48 +0800
committerGitHub <noreply@github.com>2023-03-20 23:20:48 +0800
commit601a5134d047bda03415432aa3250802e2e15554 (patch)
treed32795aabdc360ff37fa4b9ec1a1657df49f337f /src/config/mod.rs
parent19ce62ab769b74a8e417cd1213b7711a5ed55638 (diff)
downloadaichat-601a5134d047bda03415432aa3250802e2e15554.tar.gz
feat: add `--dry-run` (#83)
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index e3d81cb..8b6a6ac 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -480,9 +480,6 @@ impl Config {
}
fn merge_env_vars(&mut self) {
- if let Ok(value) = env::var(get_env_name("dry_run")) {
- set_bool(&mut self.dry_run, &value);
- }
if let Ok(value) = env::var(get_env_name("light_theme")) {
set_bool(&mut self.light_theme, &value);
}