From a271b4a79f0d178b1d158555dc94970f13b45938 Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Wed, 16 Oct 2024 20:47:47 +0200 Subject: [PATCH] seccomp_unsupported.go: Fix lint issues Added missing dots at the end of comments and ran through gofumpt. Signed-off-by: Michal Sieron --- internal/config/seccomp/seccomp_unsupported.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/internal/config/seccomp/seccomp_unsupported.go b/internal/config/seccomp/seccomp_unsupported.go index 7c6502c1ef7..b019387a2ad 100644 --- a/internal/config/seccomp/seccomp_unsupported.go +++ b/internal/config/seccomp/seccomp_unsupported.go @@ -12,20 +12,18 @@ import ( types "k8s.io/cri-api/pkg/apis/runtime/v1" ) -// Config is the global seccomp configuration type +// Config is the global seccomp configuration type. type Config struct { enabled bool } // Notifier wraps a seccomp notifier instance for a container. -type Notifier struct { -} +type Notifier struct{} // Notification is a seccomp notification which gets sent to the CRI-O server. -type Notification struct { -} +type Notification struct{} -// New creates a new default seccomp configuration instance +// New creates a new default seccomp configuration instance. func New() *Config { return &Config{ enabled: false, @@ -110,10 +108,11 @@ func (c *Config) IsDisabled() bool { return true } -// Profile returns the currently loaded seccomp profile +// Profile returns the currently loaded seccomp profile. func (c *Config) Profile() *seccomp.Seccomp { return nil } + func DefaultProfile() *seccomp.Seccomp { return nil }