Implement proper checks for new torrents
This commit is contained in:
@@ -50,8 +50,8 @@ func HandleListTorrents(directory string, t *torrent.TorrentManager, log *zap.Su
|
||||
}
|
||||
return &htmlDoc, nil
|
||||
} else {
|
||||
htmlDoc := resp.(*string)
|
||||
return htmlDoc, nil
|
||||
htmlDoc := resp.(string)
|
||||
return &htmlDoc, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ func HandleListFiles(directory, torrentName string, t *torrent.TorrentManager, l
|
||||
}
|
||||
return &htmlDoc, nil
|
||||
} else {
|
||||
htmlDoc := resp.(*string)
|
||||
return htmlDoc, nil
|
||||
htmlDoc := resp.(string)
|
||||
return &htmlDoc, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user