From d3cf77539414ba8c40686f91fd728c91b5b4f20c Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 20 Nov 2025 21:45:01 -0600 Subject: [PATCH] refactor: simplify RequestPath method by removing unnecessary error handling --- pkg/announce/announce.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/announce/announce.go b/pkg/announce/announce.go index 52aecc9..2f7a340 100644 --- a/pkg/announce/announce.go +++ b/pkg/announce/announce.go @@ -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