Minor cleanup

This commit is contained in:
Ethan O'Brien
2024-04-08 20:30:58 -05:00
parent 237e403163
commit f84e03ac04
3 changed files with 7 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ fn lock_and_select(command: &str) -> Result<String, rusqlite::Error> {
init(&mut result);
}
let conn = result.as_ref().unwrap();
let mut stmt = conn.prepare(command).unwrap();
let mut stmt = conn.prepare(command)?;
return stmt.query_row([], |row| row.get(0));
}
Err(_) => {