refactor: simplify RequestPath method by removing unnecessary error handling
This commit is contained in:
@@ -302,11 +302,7 @@ func (a *Announce) RequestPath(destHash []byte, onInterface common.NetworkInterf
|
|||||||
packet = append(packet, byte(0)) // Initial hop count
|
packet = append(packet, byte(0)) // Initial hop count
|
||||||
|
|
||||||
// Send path request
|
// Send path request
|
||||||
if err := onInterface.Send(packet, ""); err != nil {
|
return onInterface.Send(packet, "")
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateHeader creates a Reticulum packet header according to spec
|
// CreateHeader creates a Reticulum packet header according to spec
|
||||||
|
|||||||
Reference in New Issue
Block a user