From 7a314f8e98cb004d9b3861a77f6682e8ce4707ba Mon Sep 17 00:00:00 2001 From: Kent Rancourt Date: Wed, 28 Aug 2024 17:00:39 -0400 Subject: [PATCH] fix minor lint issues Signed-off-by: Kent Rancourt --- internal/directives/copy_directive.go | 2 +- internal/directives/directive.go | 1 - internal/directives/registry.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/directives/copy_directive.go b/internal/directives/copy_directive.go index 91028a21c..f4623f274 100644 --- a/internal/directives/copy_directive.go +++ b/internal/directives/copy_directive.go @@ -6,7 +6,7 @@ import ( "fmt" ) -func init() { +func init() { // Register the copy directive with the builtins registry. builtins.RegisterDirective(©Directive{}) } diff --git a/internal/directives/directive.go b/internal/directives/directive.go index 4b6bdf53c..62fc7c127 100644 --- a/internal/directives/directive.go +++ b/internal/directives/directive.go @@ -92,4 +92,3 @@ func configToStruct[T any](c Config) (T, error) { return result, nil } - diff --git a/internal/directives/registry.go b/internal/directives/registry.go index 3979bd033..bc9463887 100644 --- a/internal/directives/registry.go +++ b/internal/directives/registry.go @@ -17,7 +17,6 @@ func BuiltinsRegistry() DirectiveRegistry { // register and retrieve directives by name. type DirectiveRegistry map[string]Directive - // RegisterDirective registers a Directive with the given name. If a Directive // with the same name has already been registered, it will be overwritten. func (r DirectiveRegistry) RegisterDirective(directive Directive) {