bug fix: connection result issue

This commit is contained in:
sreedev
2023-01-09 11:04:29 -05:00
parent 85acbded46
commit c32e64450f

View File

@@ -23,7 +23,7 @@ fn db_connection_url(args: &Params) -> String {
pub fn get_connection(args: &Params) -> Result<sqlite::Connection, sqlite::Error> {
sqlite::open(db_connection_url(args)).and_then(|conn| {
setup(&conn).ok();
conn
Ok(conn)
})
}