mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-25 14:12:00 +00:00
Backport #38853 by @gomitrah * fix #36228 * fix #37221 Co-authored-by: Mitrahsoft <bala.c@mitrahsoft.in> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -316,3 +316,9 @@ func DiffSlice[T comparable](oldSlice, newSlice []T) (added, removed []T) {
|
||||
}
|
||||
return added, removed
|
||||
}
|
||||
|
||||
func MustNoError(err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user