From db7b3c587f5ac6c6070cf9bf2a83b25eb582e083 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Fri, 31 Mar 2023 17:41:15 +0200 Subject: [PATCH] Remove unecessary return --- cmd/app/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/app/main.go b/cmd/app/main.go index 7f27500..bd0c6d4 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -40,7 +40,6 @@ func main() { addrs, err := netlink.AddrList(netInterface, netlink.FAMILY_V4) if err != nil { logger.Error.Fatal(err) - return } if(len(addrs) == 0){ logger.Error.Fatal("Interface doesnt have IPv4-Adresses") @@ -56,19 +55,16 @@ func main() { ipv6Addr, err := netlink.ParseAddr(ipv6AddrStr) if err != nil { logger.Error.Fatal(err) - return } err = netlink.AddrAdd(netInterface, ipv6Addr) if err != nil { logger.Error.Fatal(err) - return } // Create a WireGuard client client, err := wgctrl.New() if err != nil { logger.Error.Fatal(err) - return } defer client.Close()