Skip to content

Commit

Permalink
chore: remove error check which is unlikely to happen
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjs committed Jan 23, 2025
1 parent 4b99a6c commit 4771c2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ func Start() {
// and empty password check is not a good solution.
if config.Config.Password != "" {
user, _ := auth.UserStore.Add(config.Config.Username)
if err:= user.SetPassword(config.Config.Password); err != nil {
slog.Error("Could not set password", slog.String("password", config.Config.Password), slog.Any("error", err))
return
}
_ = user.SetPassword(config.Config.Password)
}

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit 4771c2c

Please sign in to comment.