diff options
author | emersion <contact@emersion.fr> | 2018-01-10 17:19:45 +0100 |
---|---|---|
committer | Drew DeVault <ddevault@vistarmedia.com> | 2018-01-10 11:20:41 -0500 |
commit | a0be5e80256b98237241b2f3d7825484e7a9c964 (patch) | |
tree | 8387b8abc2ad9a81c1ced0d1caa50be7b987e193 /worker/worker.go | |
parent | 305446abfd66e85fe2c46cb4a07a3abb9fa809a4 (diff) | |
download | aerc-a0be5e80256b98237241b2f3d7825484e7a9c964.tar.gz |
Misc idiomatic fixes
Diffstat (limited to 'worker/worker.go')
-rw-r--r-- | worker/worker.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/worker/worker.go b/worker/worker.go index a5047904..da7928e9 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -16,11 +16,8 @@ type Worker interface { // Guesses the appropriate worker type based on the given source string func NewWorker(source string) (Worker, error) { - var ( - u *url.URL - err error - ) - if u, err = url.Parse(source); err != nil { + u, err := url.Parse(source) + if err != nil { return nil, err } switch u.Scheme { |