forgejo/modules/storage
Giteabot a4b14638b5
Use correct minio error (#26634) (#26639)
Backport #26634 by @delvh

Previously, `err` was defined above, checked for `err == nil` and used
nowhere else.
Hence, the result of `convertMinioErr` would always be `nil`.
This leads to a NPE further down the line.
That is not intentional, it should convert the error of the most recent
operation, not one of its predecessors.

Found through
https://discord.com/channels/322538954119184384/322538954119184384/1143185780206993550.

Co-authored-by: delvh <dev.lh@web.de>
2023-08-21 16:51:30 +00:00
..
helper.go
helper_test.go
local.go
local_test.go
minio.go Use correct minio error (#26634) (#26639) 2023-08-21 16:51:30 +00:00
minio_test.go
storage.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
storage_test.go