diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-02-07 20:30:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 20:30:09 +0100 |
commit | dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d (patch) | |
tree | 905bdda62cd2fd41cd82578b54fc56b8b944341d /vendor/github.com/SevereCloud/vksdk | |
parent | 2a3f475ff5abb510e9abe1af31a5a83b2066d86f (diff) | |
download | matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.tar.gz matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.tar.bz2 matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.zip |
Bump github.com/SevereCloud/vksdk/v2 from 2.13.0 to 2.13.1 (#1730)
Bumps [github.com/SevereCloud/vksdk/v2](https://github.com/SevereCloud/vksdk) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/SevereCloud/vksdk/releases)
- [Commits](https://github.com/SevereCloud/vksdk/compare/v2.13.0...v2.13.1)
---
updated-dependencies:
- dependency-name: github.com/SevereCloud/vksdk/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml | 5 | ||||
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/api.go | 10 | ||||
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/doc.go | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml b/vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml index a21475f1..ff1db59c 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml +++ b/vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml @@ -54,6 +54,9 @@ linters: - nilnil - tenv - nestif + - grouper + - decorder + - containedctx # - wrapcheck # TODO: v3 Fix # - testpackage # TODO: Fix testpackage @@ -82,6 +85,8 @@ linters: # - tagliatelle # - errname # - varnamelen +# - errchkjson +# - maintidx # depricated # - maligned diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go index 760bc7e0..dfc4afaf 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go @@ -269,9 +269,15 @@ func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, er switch resp.Header.Get("Content-Encoding") { case "zstd": - reader, _ = zstd.NewReader(resp.Body) + zstdReader, _ := zstd.NewReader(resp.Body) + defer zstdReader.Close() + + reader = zstdReader case "gzip": - reader, _ = gzip.NewReader(resp.Body) + gzipReader, _ := gzip.NewReader(resp.Body) + defer gzipReader.Close() + + reader = gzipReader default: reader = resp.Body } diff --git a/vendor/github.com/SevereCloud/vksdk/v2/doc.go b/vendor/github.com/SevereCloud/vksdk/v2/doc.go index ff749d80..9d70254e 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/doc.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/doc.go @@ -7,6 +7,6 @@ package vksdk // Module constants. const ( - Version = "2.13.0" + Version = "2.13.1" API = "5.131" ) |