fix: lint

This commit is contained in:
耗子
2026-03-27 17:25:18 +08:00
parent b12590c1c2
commit 5e251ac04a
+1 -1
View File
@@ -250,7 +250,7 @@ func (r *databaseRepo) Comment(req *request.DatabaseComment) error {
defer operator.Close()
return operator.(*db.Postgres).DatabaseComment(req.Name, req.Comment)
default:
return fmt.Errorf(r.t.Get("%s does not support database comment", server.Type))
return errors.New(r.t.Get("%s does not support database comment", server.Type))
}
}