aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/errors.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
commit7dbd3a69af43c58255b1dce82d05906f6243b06d (patch)
tree8eff8a92b1966f1934ab321bc1a5a060f7a6fd71 /service/errors.go
parentservice: use more upstream constants (diff)
downloadwireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.tar.xz
wireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.zip
global: correct names and patterns for go lint
Diffstat (limited to 'service/errors.go')
-rw-r--r--service/errors.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/errors.go b/service/errors.go
index e71f0d71..a2cb7bc5 100644
--- a/service/errors.go
+++ b/service/errors.go
@@ -89,9 +89,8 @@ func combineErrors(err error, serviceError Error) error {
if serviceError != ErrorSuccess {
if err != nil {
return fmt.Errorf("%v: %v", serviceError, err)
- } else {
- return serviceError
}
+ return serviceError
}
return err
-} \ No newline at end of file
+}