From 696afebf6f4db7dfaa415ba15fabfad2e200a51a Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Wed, 14 Apr 2021 10:57:40 +0200 Subject: [PATCH] happy linting --- .goreleaser.yml | 2 ++ wgquick/wg.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a7b522d..00d3adb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -133,6 +133,8 @@ changelog: exclude: - "^docs:" - "^test:" + - "^lint" + - "^happy linting" release: github: diff --git a/wgquick/wg.go b/wgquick/wg.go index d1a3cd7..88b9a31 100644 --- a/wgquick/wg.go +++ b/wgquick/wg.go @@ -123,7 +123,7 @@ func Down(cfg *Config, iface string, uspace bool, logger logrus.FieldLogger) err // By removing it, it will close itself. if uspace { if err := os.Remove(fmt.Sprintf("/var/run/wireguard/%s.sock", iface)); err != nil { - return err + return fmt.Errorf("could not remove wireguard-go sock file: %w", err) } }