diff options
author | 2022-05-08 19:49:45 +0200 | |
---|---|---|
committer | 2022-05-08 18:49:45 +0100 | |
commit | 5004e0a9da665ccc0e18cd4075ee636641b71f0a (patch) | |
tree | b7c8269b954ced61afa9fffd7305bd88acca6f8e /vendor/codeberg.org/gruf/go-hashenc/hashenc.go | |
parent | [bugfix] Fix existing bio text showing as HTML (#531) (diff) | |
download | gotosocial-5004e0a9da665ccc0e18cd4075ee636641b71f0a.tar.xz |
[bugfix] Fix remote media pruning failing if media already gone (#548)
* fix error check of prune to allow missing files
* update go-store library, add test for pruning item with db entry but no file
Signed-off-by: kim <grufwub@gmail.com>
* remove now-unneccessary error check
Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-hashenc/hashenc.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-hashenc/hashenc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-hashenc/hashenc.go b/vendor/codeberg.org/gruf/go-hashenc/hashenc.go index 66fc0a92c..fc110c533 100644 --- a/vendor/codeberg.org/gruf/go-hashenc/hashenc.go +++ b/vendor/codeberg.org/gruf/go-hashenc/hashenc.go @@ -18,7 +18,7 @@ type HashEncoder interface { Size() int } -// New returns a new HashEncoder instance based on supplied hash.Hash and Encoder supplying functions +// New returns a new HashEncoder instance based on supplied hash.Hash and Encoder supplying functions. func New(hash hash.Hash, enc Encoder) HashEncoder { hashSize := hash.Size() return &henc{ @@ -29,7 +29,7 @@ func New(hash hash.Hash, enc Encoder) HashEncoder { } } -// henc is the HashEncoder implementation +// henc is the HashEncoder implementation. type henc struct { hash hash.Hash hbuf []byte |