diff options
author | Giteabot <teabot@gitea.io> | 2024-03-25 15:22:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 07:22:09 +0000 |
commit | 78795dd5663b7d8df4620bd50c74a7d71606f1d2 (patch) | |
tree | a5033c4e329b3f4c78cfce7ee7ed9a9f1d0b7664 /modules/setting/highlight.go | |
parent | e321b8a849087d736a96275d5960f9b1446c95ba (diff) | |
download | gitea-78795dd5663b7d8df4620bd50c74a7d71606f1d2.tar.gz gitea-78795dd5663b7d8df4620bd50c74a7d71606f1d2.zip |
Fix misuse of `TxContext` (#30061) (#30062)
Backport #30061 by @wolfogre
Help #29999, or its tests cannot pass.
Also, add some comments to clarify the usage of `TxContext`.
I don't check all usages of `TxContext` because there are too many
(almost 140+). It's a better idea to replace them with `WithTx` instead
of checking them one by one. However, that may be another refactoring
PR.
Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'modules/setting/highlight.go')
0 files changed, 0 insertions, 0 deletions