Skip to content

Commit

Permalink
Merge pull request #47 from nlnwa/fix-indexdb
Browse files Browse the repository at this point in the history
Fix regression causing nothing to be indexed with cdxdb writer
  • Loading branch information
maeb authored Jan 7, 2022
2 parents 69ac143 + 1878bf5 commit 6e6ed4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/indexdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (d *CdxDbIndex) Close() {
}

func (d *CdxDbIndex) Write(warcRecord gowarc.WarcRecord, filePath string, offset int64) error {
if warcRecord.Type() != gowarc.Response || warcRecord.Type() != gowarc.Revisit {
if warcRecord.Type() != gowarc.Response && warcRecord.Type() != gowarc.Revisit {
return nil
}

Expand Down

0 comments on commit 6e6ed4d

Please sign in to comment.