From 6b404f0c7a7c9ee3e29ff98999764ac13a4b8ba8 Mon Sep 17 00:00:00 2001 From: Erich Kaestner <36450093+jdknives@users.noreply.github.com> Date: Wed, 27 Nov 2019 12:28:53 +0800 Subject: [PATCH] linted --- cmd/skywire-cli/commands/node/gen-config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/skywire-cli/commands/node/gen-config.go b/cmd/skywire-cli/commands/node/gen-config.go index 71de40b2f..141cc59e1 100644 --- a/cmd/skywire-cli/commands/node/gen-config.go +++ b/cmd/skywire-cli/commands/node/gen-config.go @@ -191,7 +191,10 @@ func defaultSkyproxyClientConfig() visor.AppConfig { } func getLocalIPAddress() string { - addrs, _ := net.InterfaceAddrs() + addrs, err := net.InterfaceAddrs() + if err != nil { + log.WithError(err) + } for _, a := range addrs { if ipnet, ok := a.(*net.IPNet); ok && !ipnet.IP.IsLoopback() { @@ -201,4 +204,4 @@ func getLocalIPAddress() string { } } return "" -} \ No newline at end of file +}