1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-18 13:44:27 +00:00
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
..
2023-04-17 11:37:23 +08:00
2023-07-14 11:00:31 +08:00
2023-07-07 05:31:56 +00:00
2023-07-07 05:31:56 +00:00
2023-07-07 05:31:56 +00:00
2023-05-21 22:35:11 +00:00
2023-07-07 05:31:56 +00:00
2023-02-11 08:39:50 +08:00
2022-12-30 23:31:00 +08:00
2023-08-10 02:05:37 +00:00
2023-08-21 16:20:11 +00:00
2023-08-20 22:59:19 +00:00