+2
-4
internal/plc/bundle.go
+2
-4
internal/plc/bundle.go
···
130
130
131
131
// Calculate uncompressed hash
132
132
var jsonlData []byte
133
-
for i, op := range operations {
133
+
for _, op := range operations {
134
134
jsonlData = append(jsonlData, op.RawJSON...)
135
-
if i < len(operations)-1 {
136
-
jsonlData = append(jsonlData, '\n')
137
-
}
135
+
jsonlData = append(jsonlData, '\n')
138
136
}
139
137
uncompressedHash := bm.calculateHash(jsonlData)
140
138