Resolve linter issues

This commit is contained in:
Ben Sarmiento
2023-12-06 20:49:01 +01:00
parent 743ac0e6d3
commit 6783011dcc
3 changed files with 0 additions and 29 deletions

View File

@@ -1,17 +0,0 @@
package dav
import (
"strings"
)
func splitIntoSegments(path string) []string {
segments := strings.Split(path, "/")
// remove empty segments
for i := 0; i < len(segments); i++ {
if segments[i] == "" {
segments = append(segments[:i], segments[i+1:]...)
i--
}
}
return segments
}

View File

@@ -1,11 +0,0 @@
package http
func removeEmptySegments(urlSegments []string) []string {
var result []string
for _, s := range urlSegments {
if s != "" {
result = append(result, s)
}
}
return result
}

View File

@@ -173,7 +173,6 @@ func (t *TorrentManager) getMoreInfo(rdTorrent realdebrid.Torrent) *Torrent {
// all links are still intact! good! // all links are still intact! good!
for i, file := range selectedFiles { for i, file := range selectedFiles {
file.Link = info.Links[i] file.Link = info.Links[i]
i++
} }
} }
torrent.SelectedFiles = cmap.New[*File]() torrent.SelectedFiles = cmap.New[*File]()