chnage flatlf to panic from MustGetUserInfo

This commit is contained in:
Umputun
2018-07-19 00:09:32 -05:00
parent 7e00d40596
commit b2775d92b0
+1 -2
View File
@@ -3,7 +3,6 @@ package rest
import (
"context"
"errors"
"log"
"net/http"
"github.com/umputun/remark/backend/app/store"
@@ -16,7 +15,7 @@ type contextKey string
func MustGetUserInfo(r *http.Request) store.User {
user, err := GetUserInfo(r)
if err != nil {
log.Fatalf("[ERROR] %s", err)
panic(err)
}
return user
}