mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Linting
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
This commit is contained in:
parent
3e4e78378e
commit
710770eed4
4 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ func main() {
|
|||
}
|
||||
|
||||
if err := cmd.Execute(); err != nil {
|
||||
helmcmd.Logger.Debug("error", err)
|
||||
helmcmd.Logger.Debug("error", slog.Any("error", err))
|
||||
switch e := err.(type) {
|
||||
case helmcmd.PluginError:
|
||||
os.Exit(e.Code)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func actionConfigFixture(t *testing.T) *Configuration {
|
|||
// Create a handler that removes timestamps
|
||||
handler := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
|
||||
Level: slog.LevelDebug,
|
||||
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
|
||||
ReplaceAttr: func(_ []string, a slog.Attr) slog.Attr {
|
||||
// Remove the time attribute
|
||||
if a.Key == slog.TimeKey {
|
||||
return slog.Attr{}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ func NewLogger(debug bool) *slog.Logger {
|
|||
// Create a handler that removes timestamps
|
||||
handler := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
|
||||
Level: level,
|
||||
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
|
||||
ReplaceAttr: func(_ []string, a slog.Attr) slog.Attr {
|
||||
// Remove the time attribute
|
||||
if a.Key == slog.TimeKey {
|
||||
return slog.Attr{}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ func newPluginListCmd(out io.Writer) *cobra.Command {
|
|||
Short: "list installed Helm plugins",
|
||||
ValidArgsFunction: noMoreArgsCompFunc,
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
Logger.Debug("pluginDirs", settings.PluginsDirectory)
|
||||
Logger.Debug("pluginDirs", "directory", settings.PluginsDirectory)
|
||||
plugins, err := plugin.FindPlugins(settings.PluginsDirectory)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue