Merge pull request #2737 from jespino/smallfix

Removing duplicated logic
This commit is contained in:
Scott Bishel 2022-04-06 10:32:38 -06:00 committed by GitHub
commit 286f7f0663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1574,10 +1574,6 @@ func (a *API) handlePostTeamRegenerateSignupToken(w http.ResponseWriter, r *http
// "$ref": "#/definitions/ErrorResponse"
if a.MattermostAuth {
a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "not permitted in plugin mode", nil)
}
if a.MattermostAuth {
a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "", nil)
return
}