Defend against invalid sessions (#3229)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-07-02 16:42:32 -04:00
committed by GitHub
parent c77c1b364d
commit 5f7e50ef4a
7 changed files with 37 additions and 38 deletions
-1
View File
@@ -1259,7 +1259,6 @@ impl Session {
);
}
/// Get the session metadata
pub fn get_metadata(&self) -> Result<session::SessionMetadata> {
if !self.session_file.as_ref().is_some_and(|f| f.exists()) {
return Err(anyhow::anyhow!("Session file does not exist"));