diff options
author | Jason Song <i@wolfogre.com> | 2023-04-03 16:42:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 16:42:38 +0800 |
commit | d67e40684f43b0eb744cad26e0265002f033dbc3 (patch) | |
tree | 5a930a4691124ae0c4114e8895966ac380d4f3a0 /templates/code | |
parent | ca905b82df7f1d2a823d8df4448d485e5902876d (diff) | |
download | gitea-d67e40684f43b0eb744cad26e0265002f033dbc3.tar.gz gitea-d67e40684f43b0eb744cad26e0265002f033dbc3.zip |
Improve LoadUnitConfig to handle invalid or duplicate units (#23736)
The old code just parses an invalid key to `TypeInvalid` and uses it as
normal, and duplicate keys will be kept.
So this PR will ignore invalid key and log warning and also deduplicate
valid units.
Diffstat (limited to 'templates/code')
0 files changed, 0 insertions, 0 deletions