Skip to content

A self-hosted dashboard that puts all your feeds in one place

Remove extra whitespace

Svilen Markov8a75f303bb71
diff --git a/docs/configuration.md b/docs/configuration.md
index 7123692..cc24f56 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -1344,8 +1344,6 @@ repositories:
- codeberg:redict/redict
```
-
-
##### `show-source-icon`
Shows an icon of the source (GitHub/GitLab/Codeberg/Docker Hub) next to the repository name when set to `true`.
diff --git a/internal/glance/widget-releases.go b/internal/glance/widget-releases.go
index 0f1e2d9..92ac003 100644
--- a/internal/glance/widget-releases.go
+++ b/internal/glance/widget-releases.go
@@ -213,7 +213,6 @@ type githubReleaseResponseJson struct {
func fetchLatestGithubRelease(request *releaseRequest) (*appRelease, error) {
var requestURL string
-
if !request.IncludePreleases {
requestURL = fmt.Sprintf("https://api.github.com/repos/%s/releases/latest", request.Repository)
} 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"
func fetchLatestDockerHubRelease(request *releaseRequest) (*appRelease, error) {
-
nameParts := strings.Split(request.Repository, "/")
if len(nameParts) > 2 {
@@ -286,7 +284,6 @@ func fetchLatestDockerHubRelease(request *releaseRequest) (*appRelease, error) {
}
tagParts := strings.SplitN(nameParts[1], ":", 2)
-
var requestURL string
if len(tagParts) == 2 {