Skip to content

Commit c6ffa03

Browse files
authored
Merge pull request #4690 from kersten/chore/trim-empty-lines
🌱 (chore): remove unnecessary blank lines across plugin configuration and options
2 parents efb64a1 + 954f9bb commit c6ffa03

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

pkg/cli/options.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,9 @@ func DiscoverExternalPlugins(filesystem afero.Fs) (ps []plugin.Plugin, err error
317317
logrus.Printf("Adding external plugin: %s", ep.Name())
318318

319319
ps = append(ps, ep)
320-
321320
}
322321
}
323322
}
324-
325323
}
326324

327325
return ps, nil

pkg/plugins/golang/options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ func (opts Options) UpdateResource(res *resource.Resource, c config.Config) {
8888
CRDVersion: "v1",
8989
Namespaced: opts.Namespaced,
9090
}
91-
9291
}
9392

9493
if opts.DoController {

pkg/plugins/optional/grafana/v1alpha/commons.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ import (
2626
func InsertPluginMetaToConfig(target config.Config, cfg pluginConfig) error {
2727
err := target.DecodePluginConfig(pluginKey, cfg)
2828
if !errors.As(err, &config.UnsupportedFieldError{}) {
29-
3029
if err != nil && !errors.As(err, &config.PluginKeyNotFoundError{}) {
3130
return err
3231
}
3332

3433
if err = target.EncodePluginConfig(pluginKey, cfg); err != nil {
3534
return err
3635
}
37-
3836
}
3937

4038
return nil

0 commit comments

Comments
 (0)