mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-16 20:23:24 +00:00
clean out error return from funcs that don't return error
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -8,10 +8,7 @@ func (b *OSCBundle) ToBytes() ([]byte, error) {
|
||||
|
||||
bytes := stringToOSCBytes("#bundle")
|
||||
|
||||
timeTagBytes, err := timeTagToOSCBytes(b.TimeTag)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
timeTagBytes := timeTagToOSCBytes(b.TimeTag)
|
||||
bytes = append(bytes, timeTagBytes...)
|
||||
|
||||
for _, packet := range b.Contents {
|
||||
@@ -21,10 +18,7 @@ func (b *OSCBundle) ToBytes() ([]byte, error) {
|
||||
}
|
||||
packetLength := len(packetBytes)
|
||||
|
||||
packetLengthBytes, err := int32ToOSCBytes(int32(packetLength))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
packetLengthBytes := int32ToOSCBytes(int32(packetLength))
|
||||
bytes = append(bytes, packetLengthBytes...)
|
||||
bytes = append(bytes, packetBytes...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user