Remove extra whitespace

This commit is contained in:
Svilen Markov 2025-01-17 20:16:55 +00:00
parent 0ce706e02e
commit 8a75f303bb
2 changed files with 0 additions and 5 deletions

View File

@ -1344,8 +1344,6 @@ repositories:
- codeberg:redict/redict - codeberg:redict/redict
``` ```
##### `show-source-icon` ##### `show-source-icon`
Shows an icon of the source (GitHub/GitLab/Codeberg/Docker Hub) next to the repository name when set to `true`. Shows an icon of the source (GitHub/GitLab/Codeberg/Docker Hub) next to the repository name when set to `true`.

View File

@ -213,7 +213,6 @@ type githubReleaseResponseJson struct {
func fetchLatestGithubRelease(request *releaseRequest) (*appRelease, error) { func fetchLatestGithubRelease(request *releaseRequest) (*appRelease, error) {
var requestURL string var requestURL string
if !request.IncludePreleases { if !request.IncludePreleases {
requestURL = fmt.Sprintf("https://api.github.com/repos/%s/releases/latest", request.Repository) requestURL = fmt.Sprintf("https://api.github.com/repos/%s/releases/latest", request.Repository)
} else { } else {
@ -276,7 +275,6 @@ const dockerHubTagsURLFormat = "https://hub.docker.com/v2/namespaces/%s/reposito
const dockerHubSpecificTagURLFormat = "https://hub.docker.com/v2/namespaces/%s/repositories/%s/tags/%s" const dockerHubSpecificTagURLFormat = "https://hub.docker.com/v2/namespaces/%s/repositories/%s/tags/%s"
func fetchLatestDockerHubRelease(request *releaseRequest) (*appRelease, error) { func fetchLatestDockerHubRelease(request *releaseRequest) (*appRelease, error) {
nameParts := strings.Split(request.Repository, "/") nameParts := strings.Split(request.Repository, "/")
if len(nameParts) > 2 { if len(nameParts) > 2 {
@ -286,7 +284,6 @@ func fetchLatestDockerHubRelease(request *releaseRequest) (*appRelease, error) {
} }
tagParts := strings.SplitN(nameParts[1], ":", 2) tagParts := strings.SplitN(nameParts[1], ":", 2)
var requestURL string var requestURL string
if len(tagParts) == 2 { if len(tagParts) == 2 {