chore: update server profile

This commit is contained in:
boojack
2022-05-22 09:29:34 +08:00
parent 0b3c77c79c
commit c3c2882dc5
8 changed files with 56 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ func findTable(db *DB, tableName string) (*Table, error) {
args...,
)
if err != nil {
return nil, FormatError(err)
return nil, err
}
defer rows.Close()
@@ -36,14 +36,14 @@ func findTable(db *DB, tableName string) (*Table, error) {
&table.Name,
&table.SQL,
); err != nil {
return nil, FormatError(err)
return nil, err
}
tableList = append(tableList, &table)
}
if err := rows.Err(); err != nil {
return nil, FormatError(err)
return nil, err
}
if len(tableList) == 0 {