Remove shadowing declaration of subscription.

Этот коммит содержится в:
Conor Macpherson
2022-12-20 09:53:20 -05:00
родитель 197262bc70
Коммит 589ae56c29

Просмотреть файл

@@ -314,10 +314,11 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
} }
var subscription *model.Subscription var subscription *model.Subscription
var err error
if c.App.Cloud() != nil { if c.App.Cloud() != nil {
// Subscription Data // Subscription Data
userId := c.AppContext.Session().UserId userId := c.AppContext.Session().UserId
subscription, err := c.App.Cloud().GetSubscription(userId) subscription, err = c.App.Cloud().GetSubscription(userId)
if err != nil || subscription == nil { if err != nil || subscription == nil {
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)
return return