DB: Remove some unnecessary code
This commit is contained in:
parent
fe49220b64
commit
f03ee88b74
|
@ -53,7 +53,7 @@ impl DbBackend for RedisBackend {
|
|||
|
||||
fn disconnect(&mut self) -> Result<(), String> {
|
||||
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
||||
drop(self.conn.take());
|
||||
self.conn.take();
|
||||
return Ok(())
|
||||
}
|
||||
}
|
|
@ -57,8 +57,7 @@ impl DbBackend for SqliteBackend {
|
|||
|
||||
fn disconnect(&mut self) -> Result<(), String> {
|
||||
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
||||
drop(self.conn.take());
|
||||
self.conn = None;
|
||||
self.conn.take();
|
||||
Ok(())
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user