diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-21 15:41:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 15:41:46 -0400 |
commit | 5c8ba488078c7ee71e5b3a2cbb2bf770734d6c81 (patch) | |
tree | 7b6ec387c3006e83c4e3168412e9e70e5565ff45 /vendor/github.com/klauspost/compress/zstd/decoder_options.go | |
parent | 897f6c3a4a55bfc82a989c81cb3dc8998965c408 (diff) | |
parent | 5aef11026a850bb99d8394dba17810bf05d727bc (diff) | |
download | podman-5c8ba488078c7ee71e5b3a2cbb2bf770734d6c81.tar.gz podman-5c8ba488078c7ee71e5b3a2cbb2bf770734d6c81.tar.bz2 podman-5c8ba488078c7ee71e5b3a2cbb2bf770734d6c81.zip |
Merge pull request #10097 from containers/dependabot/go_modules/github.com/containers/storage-1.30.0
Bump github.com/containers/storage from 1.29.0 to 1.30.0
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/decoder_options.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/zstd/decoder_options.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/decoder_options.go b/vendor/github.com/klauspost/compress/zstd/decoder_options.go index 284d38449..c0fd058c2 100644 --- a/vendor/github.com/klauspost/compress/zstd/decoder_options.go +++ b/vendor/github.com/klauspost/compress/zstd/decoder_options.go @@ -6,7 +6,6 @@ package zstd import ( "errors" - "fmt" "runtime" ) @@ -43,7 +42,7 @@ func WithDecoderLowmem(b bool) DOption { func WithDecoderConcurrency(n int) DOption { return func(o *decoderOptions) error { if n <= 0 { - return fmt.Errorf("Concurrency must be at least 1") + return errors.New("concurrency must be at least 1") } o.concurrent = n return nil @@ -61,7 +60,7 @@ func WithDecoderMaxMemory(n uint64) DOption { return errors.New("WithDecoderMaxMemory must be at least 1") } if n > 1<<63 { - return fmt.Errorf("WithDecoderMaxmemory must be less than 1 << 63") + return errors.New("WithDecoderMaxmemory must be less than 1 << 63") } o.maxDecodedSize = n return nil |