You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix: err shadowing lint
This commit is contained in:
@@ -378,7 +378,8 @@ func quickSetup(flags *pflag.FlagSet, d pythonData) {
|
||||
password := getParam(flags, "password")
|
||||
|
||||
if password == "" {
|
||||
pwd, err := users.RandomPwd()
|
||||
var pwd string
|
||||
pwd, err = users.RandomPwd()
|
||||
checkErr(err)
|
||||
|
||||
log.Println("Generated random admin password for quick setup:", pwd)
|
||||
|
||||
Reference in New Issue
Block a user