0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 12:48:17 +01:00
gitea/modules/storage
delvh 3d80308b36
Use correct minio error (#26634)
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.
2023-08-21 16:20:11 +00:00
..
helper_test.go
helper.go
local_test.go
local.go
minio_test.go
minio.go
storage_test.go
storage.go