fix: linting

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-01-04 22:51:44 +00:00
parent dfa6f82dda
commit f52a083849
2 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,7 @@ func quickSetup(cmd *cobra.Command) {
defer db.Close()
set := &settings.Settings{
Key: generateRandomBytes(64), // 256 bit
BaseURL: "",
Signup: false,
AuthMethod: auth.MethodJSONAuth,

View File

@ -68,6 +68,9 @@ func withUser(fn handleFunc) handleFunc {
}
d.user, err = d.store.Users.Get(tk.User.ID)
if err != nil {
return http.StatusInternalServerError, err
}
return fn(w, r, d)
}
}