service/mattermost/mattermost.go
Function setupLoginService
has 6 return statements (exceeds 4 allowed). Open
Open
func setupLoginService(url string, msgService *http.Service) *http.Service {
// create another new http client for login request call.
httpService := http.New()
// append login path for the given mattermost server with custom payload builder.