diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-16 15:49:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-16 15:49:18 +0200 |
commit | 7dbd3a69af43c58255b1dce82d05906f6243b06d (patch) | |
tree | 8eff8a92b1966f1934ab321bc1a5a060f7a6fd71 /service/errors.go | |
parent | service: use more upstream constants (diff) | |
download | wireguard-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.go | 5 |
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 +} |