diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-26 13:45:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 13:45:27 +0800 |
commit | e409e14bdfb56767c9048076f4e818757aab73b9 (patch) | |
tree | 150bb1702f29af2c24aa3a57d5a9d00a0c5ac685 /.editorconfig | |
parent | 50dc2d5f5f096820f3928be0f70d3d12c3b1cc9c (diff) | |
download | gitea-e409e14bdfb56767c9048076f4e818757aab73b9.tar.gz gitea-e409e14bdfb56767c9048076f4e818757aab73b9.zip |
Fix CLI sub-command handling (#25501)
A regression of #25330 : The nil "Action" should be treated as "help"
In old releases: `./gitea admin` show helps
After #25330: `./gitea admin` panics (although the code returned `nil`
if action is nil, but Golang's quirk is: nil in interface is not nil)
With this PR: `./gitea admin` shows helps as the old releases.
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions