refactor: simplify RequestPath method by removing unnecessary error handling

This commit is contained in:
2025-11-20 21:45:01 -06:00
parent 5e19f6f802
commit d3cf775394

View File

@@ -302,11 +302,7 @@ func (a *Announce) RequestPath(destHash []byte, onInterface common.NetworkInterf
packet = append(packet, byte(0)) // Initial hop count
// Send path request
if err := onInterface.Send(packet, ""); err != nil {
return err
}
return nil
return onInterface.Send(packet, "")
}
// CreateHeader creates a Reticulum packet header according to spec