refactor: run Go modernize (#5002)

This commit is contained in:
Maximilian 2026-02-08 08:57:30 -06:00 committed by GitHub
parent 408aa78ed5
commit a704e86ac1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
102 changed files with 322 additions and 352 deletions

View file

@ -6,16 +6,16 @@ import (
type logger struct{}
func (l *logger) Info(msg string, keysAndValues ...interface{}) {
args := []interface{}{
func (l *logger) Info(msg string, keysAndValues ...any) {
args := []any{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)
log.Debug(args...)
}
func (l *logger) Error(err error, msg string, keysAndValues ...interface{}) {
args := []interface{}{
func (l *logger) Error(err error, msg string, keysAndValues ...any) {
args := []any{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)