summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/SevereCloud
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/SevereCloud')
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml5
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/api.go10
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/doc.go2
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"
)