Skip to content

Commit

Permalink
update to go 1.23
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
vintikzzz committed Nov 7, 2024
1 parent 508b284 commit ca2637c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ torrent-store
client/client

.DS_Store
.env
.env
stoplist.yaml
6 changes: 5 additions & 1 deletion services/stoplist.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ func (s *Stoplist) getData(b []byte) ([]string, error) {
var data []string
data = append(data, i.Name)
for _, file := range i.Files {
data = append(data, strings.Join(file.PathUtf8, " "))
path := file.PathUtf8
if path == nil {
path = file.Path
}
data = append(data, strings.Join(path, " "))
}
return data, nil
}
Expand Down

0 comments on commit ca2637c

Please sign in to comment.