1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 06:31:47 +01:00
gitea/templates
caicandong 13359581df
refactor improve NoBetterThan (#26126)
- The `NoBetterThan` function can only handle comparisons between
"pending," "success," "error," and "failure." For any other comparison,
we directly return false. This prevents logic errors like the one in
#26121.
- The callers of the `NoBetterThan` function should also avoid making
incomparable calls.

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
2023-07-26 08:52:07 +00:00
..
admin
api/packages/pypi
base
code
custom
devtest
explore
mail
org
package
projects
repo
shared
status
swagger refactor improve NoBetterThan (#26126) 2023-07-26 08:52:07 +00:00
user
home.tmpl
install.tmpl
post-install.tmpl