From 8149db57e08ca980f9a6cab5e6bfb33ea7408303 Mon Sep 17 00:00:00 2001 From: nsf Date: Fri, 6 Jul 2012 02:02:42 +0600 Subject: [PATCH] Omg, haven't tested before committing, what a shame. :D --- torrent/builder.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/torrent/builder.go b/torrent/builder.go index 97b551e9..a075ed45 100644 --- a/torrent/builder.go +++ b/torrent/builder.go @@ -125,7 +125,7 @@ func (b *Builder) Build(w io.Writer, nworkers int) (<-chan error, <-chan Builder } b.set_defaults() - err := b.prepare_files() + err = b.prepare_files() if err != nil { completion <- err return @@ -517,7 +517,7 @@ func (b *Builder) check_parameters() error { // let's clean up the announce_list newal := make([][]string, 0, len(b.announce_list)) - for _, ag := b.announce_list { + for _, ag := range b.announce_list { ag = remove_empty_strings(ag) // discard empty announce groups @@ -533,4 +533,6 @@ func (b *Builder) check_parameters() error { // and clean up the urls b.urls = remove_empty_strings(b.urls) + + return nil } \ No newline at end of file