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