func newWARC(r io.Reader, path string) (decompressor, error) { var err error if warcReader == nil { warcReader, err = webarchive.NewWARCReader(r) } else { err = warcReader.Reset(r) } return &wa{p: trimWebPath(path), rdr: warcReader}, err }
func newWARC(r io.Reader, path string) (decompressor, error) { warcReader, err := webarchive.NewWARCReader(r) return &wa{p: trimWebPath(path), rdr: warcReader}, err }