remove other use of relfection to determine error.
Этот коммит содержится в:
@@ -10,7 +10,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@@ -374,10 +373,9 @@ func selfHostedConfirmExpand(c *Context, w http.ResponseWriter, r *http.Request)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
license, err := c.App.Srv().Platform().SaveLicense([]byte(confirmResponse.License))
|
license, appErr := c.App.Srv().Platform().SaveLicense([]byte(confirmResponse.License))
|
||||||
|
|
||||||
// dealing with an AppError
|
// dealing with an AppError
|
||||||
if !(reflect.ValueOf(err).Kind() == reflect.Ptr && reflect.ValueOf(err).IsNil()) {
|
if appErr != nil {
|
||||||
if confirmResponse != nil {
|
if confirmResponse != nil {
|
||||||
c.App.NotifySelfHostedSignupProgress(confirmResponse.Progress, user.Id)
|
c.App.NotifySelfHostedSignupProgress(confirmResponse.Progress, user.Id)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user