From ca2637c9d1e8b6791dd3e17263b1eaccb516b7fa Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Thu, 7 Nov 2024 20:34:01 +0300 Subject: [PATCH] update to go 1.23 update deps --- .gitignore | 3 ++- services/stoplist.go | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index de81d6a..fca75ac 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ torrent-store client/client .DS_Store -.env \ No newline at end of file +.env +stoplist.yaml \ No newline at end of file diff --git a/services/stoplist.go b/services/stoplist.go index 251c0c4..91cbaaf 100644 --- a/services/stoplist.go +++ b/services/stoplist.go @@ -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 }