Skip to content

Commit 8316d3d

Browse files
authored
s2: Remove sanity load on index creation (#607)
Cleanup
1 parent 6c3cad3 commit 8316d3d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

s2/encode.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,12 +1119,6 @@ func (w *Writer) closeIndex(idx bool) ([]byte, error) {
11191119
if w.appendIndex {
11201120
w.written += int64(len(index))
11211121
}
1122-
if true {
1123-
_, err := w.index.Load(index)
1124-
if err != nil {
1125-
panic(err)
1126-
}
1127-
}
11281122
}
11291123

11301124
if w.pad > 1 {

0 commit comments

Comments
 (0)