summaryrefslogtreecommitdiffstats
path: root/src/config/session.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-27 11:20:00 +0800
committerGitHub <noreply@github.com>2024-03-27 11:20:00 +0800
commit68a1d98a3dd583c506447e8035f07ea05408f4dd (patch)
tree8edf274b19b5323b55355ccaf733ea68dbcd45e4 /src/config/session.rs
parent4cfd6c8e9fd516167317de439c8136a7481dc2bb (diff)
downloadaichat-68a1d98a3dd583c506447e8035f07ea05408f4dd.tar.gz
feat: add repl command `.save session` (#382)
Diffstat (limited to 'src/config/session.rs')
-rw-r--r--src/config/session.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/session.rs b/src/config/session.rs
index 6ab855c..801615f 100644
--- a/src/config/session.rs
+++ b/src/config/session.rs
@@ -241,9 +241,6 @@ impl Session {
}
pub fn save(&mut self, session_path: &Path) -> Result<()> {
- if !self.dirty {
- return Ok(());
- }
self.path = Some(session_path.display().to_string());
let content = serde_yaml::to_string(&self)