Clean up log messages (#30313)
`log.Xxx("%v")` is not ideal, this PR adds necessary context messages. Remove some unnecessary logs. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
94aad35a12
commit
83f83019ef
17 changed files with 31 additions and 47 deletions
|
@ -214,7 +214,7 @@ func ToPointer[T any](val T) *T {
|
|||
}
|
||||
|
||||
// Iif is an "inline-if", it returns "trueVal" if "condition" is true, otherwise "falseVal"
|
||||
func Iif[T comparable](condition bool, trueVal, falseVal T) T {
|
||||
func Iif[T any](condition bool, trueVal, falseVal T) T {
|
||||
if condition {
|
||||
return trueVal
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue