Showing 2 of 7 total issues
Function LoadConfig
has 6 return statements (exceeds 4 allowed). Open
Open
func LoadConfig(path string) (*Settings, error) {
validate = validator.New()
if err := validate.RegisterValidation("notempty", validateEmptyString); err != nil {
return nil, err
}
- Create a ticketCreate a ticket
Function getImgurAccessToken
has 6 return statements (exceeds 4 allowed). Open
Open
func getImgurAccessToken(tg *Client) {
if tg.ImgurSettings.ImgurClientID == "" || tg.ImgurSettings.ImgurRefreshToken == "" {
tg.logger.LogError("Imgur client secret and refresh token must be set")
return
}
- Create a ticketCreate a ticket