Procházet zdrojové kódy

Remove extra whitespace

Svilen Markov před 6 měsíci
rodič
revize
8a75f303bb
2 změnil soubory, kde provedl 0 přidání a 5 odebrání
  1. 0 2
      docs/configuration.md
  2. 0 3
      internal/glance/widget-releases.go

+ 0 - 2
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`.
 

+ 0 - 3
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 {