diff --git a/internal/shell/persistent.go b/internal/shell/persistent.go index 806261d0bbd8b4bb3471383bcd7afe3b1fd50fc4..90c93339d01565bea1b028a16965ac1968f21980 100644 --- a/internal/shell/persistent.go +++ b/internal/shell/persistent.go @@ -32,6 +32,6 @@ func GetPersistentShell(cwd string) *PersistentShell { // slog.dapter adapts the internal slog.package to the Logger interface type loggingAdapter struct{} -func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...interface{}) { +func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...any) { slog.Info(msg, keysAndValues...) } diff --git a/internal/shell/shell.go b/internal/shell/shell.go index c86d3c6531d2be3c2d91389d514d235d32c8fd65..e6e6d47e644e4569c4dc04e927a66817a9fc1a28 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -35,13 +35,13 @@ const ( // Logger interface for optional logging type Logger interface { - InfoPersist(msg string, keysAndValues ...interface{}) + InfoPersist(msg string, keysAndValues ...any) } // noopLogger is a logger that does nothing type noopLogger struct{} -func (noopLogger) InfoPersist(msg string, keysAndValues ...interface{}) {} +func (noopLogger) InfoPersist(msg string, keysAndValues ...any) {} // BlockFunc is a function that determines if a command should be blocked type BlockFunc func(args []string) bool diff --git a/internal/tui/components/core/core.go b/internal/tui/components/core/core.go index 1db79e954350a11a4a843797b07a091736a1cae9..9f6657de33d5ed824b7d5bc7086342e8f3ec7d48 100644 --- a/internal/tui/components/core/core.go +++ b/internal/tui/components/core/core.go @@ -197,7 +197,7 @@ func SelectableButtonsVertical(buttons []ButtonOpts, spacing int) string { for i, button := range buttons { parts = append(parts, SelectableButton(button)) if i < len(buttons)-1 { - for j := 0; j < spacing; j++ { + for range spacing { parts = append(parts, "") } }