RITlug/teleirc

View on GitHub
internal/handlers/telegram/imgur.go

Summary

Maintainability
A
40 mins
Test Coverage
F
0%

Function getImgurAccessToken has 6 return statements (exceeds 4 allowed).
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
    }
Severity: Major
Found in internal/handlers/telegram/imgur.go - About 40 mins to fix

There are no issues that match your filters.

Category
Status