Skip to content

Commit

Permalink
s2: Remove sanity load on index creation (#607)
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
klauspost authored May 30, 2022
1 parent 6c3cad3 commit 8316d3d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions s2/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,12 +1119,6 @@ func (w *Writer) closeIndex(idx bool) ([]byte, error) {
if w.appendIndex {
w.written += int64(len(index))
}
if true {
_, err := w.index.Load(index)
if err != nil {
panic(err)
}
}
}

if w.pad > 1 {
Expand Down

0 comments on commit 8316d3d

Please sign in to comment.