good morning!!!!

Skip to content
Snippets Groups Projects
Commit b55e017e authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Proper delete

parent 82be3054
Loading
......@@ -18,7 +18,7 @@ func (self Bytes) String() string {
func DeleteFromByteSlice(s [][]byte, hash []byte) [][]byte {
for i, h := range s {
if bytes.Compare(h, hash) == 0 {
return append(s[:i], s[i+1:]...)
return append(s[:i:i], s[i+1:]...)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment