remove unneeded type

This commit is contained in:
2024-12-19 18:35:00 -06:00
parent eb1785f668
commit 9a66dd02bb
-20
View File
@@ -1,20 +0,0 @@
package decoders
import (
"encoding/binary"
"errors"
"log/slog"
)
func DecodePacketChunk(bytes []byte) (interface{}, error) {
switch id := binary.LittleEndian.Uint16(bytes[0:2]); id {
case 0x6756:
return DecodeInfoPacketChunk(bytes), nil
case 0x6755:
return DecodeDataPacketChunk(bytes), nil
default:
slog.Error("unhandled packet id", "id", id)
return Chunk{}, errors.New("unhandled packet id")
}
}