mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 10:10:25 +00:00
make lint happy
This commit is contained in:
@@ -37,9 +37,8 @@ func Open(dbpath string) (*SleepDB, error) {
|
||||
db, err := gorm.Open("sqlite3", dbpath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else {
|
||||
return (*SleepDB)(db), nil
|
||||
}
|
||||
return (*SleepDB)(db), nil
|
||||
}
|
||||
|
||||
// Close 关闭
|
||||
|
||||
Reference in New Issue
Block a user