mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-04 20:53:09 -06:00
Linter again :)
This commit is contained in:
parent
57035e4b4f
commit
4d47020668
|
|
@ -102,9 +102,13 @@ func main() {
|
|||
}
|
||||
|
||||
if *resetPassword {
|
||||
var (
|
||||
accountDB storage.Database
|
||||
available bool
|
||||
)
|
||||
b := base.NewBaseDendrite(cfg, "")
|
||||
defer b.Close() // nolint: errcheck
|
||||
accountDB, err := storage.NewUserAPIDatabase(
|
||||
accountDB, err = storage.NewUserAPIDatabase(
|
||||
b,
|
||||
&cfg.UserAPI.AccountDatabase,
|
||||
cfg.Global.ServerName,
|
||||
|
|
@ -117,7 +121,7 @@ func main() {
|
|||
logrus.WithError(err).Fatalln("Failed to connect to the database")
|
||||
}
|
||||
|
||||
available, err := accountDB.CheckAccountAvailability(context.Background(), *username)
|
||||
available, err = accountDB.CheckAccountAvailability(context.Background(), *username)
|
||||
if err != nil {
|
||||
logrus.Fatalln("Unable check username existence.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue