From 7d6d67992929b26db48a4be08ca45a101727a0ef Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 11 Feb 2021 13:07:02 +0100 Subject: [PATCH] Fix some linter errors --- status/provider.go | 2 +- status/records.go | 2 +- status/security_level.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/status/provider.go b/status/provider.go index 863b11be..e2230f65 100644 --- a/status/provider.go +++ b/status/provider.go @@ -34,7 +34,7 @@ func setupRuntimeProvider() (err error) { return nil } -// setSelectedSecurityLevel updates the selected security level +// setSelectedSecurityLevel updates the selected security level. func setSelectedSecurityLevel(r record.Record) (record.Record, error) { var upd *SelectedSecurityLevelRecord if r.IsWrapped() { diff --git a/status/records.go b/status/records.go index 73801c62..7f2c39b4 100644 --- a/status/records.go +++ b/status/records.go @@ -33,7 +33,7 @@ type SystemStatusRecord struct { // SelectedSecurityLevelRecord is used as a dummy record.Record // to provide a simply runtime-configuration for the user. -// It is write-only and exposed at runtime:system/security-level +// It is write-only and exposed at "runtime:system/security-level". type SelectedSecurityLevelRecord struct { record.Base sync.Mutex diff --git a/status/security_level.go b/status/security_level.go index 199237d3..03a0f4e0 100644 --- a/status/security_level.go +++ b/status/security_level.go @@ -15,7 +15,7 @@ type ( // It's meant to be used as a value for config.DisplayHintAnnotation. const DisplayHintSecurityLevel string = "security level" -// Security levels +// Security levels. const ( SecurityLevelOff uint8 = 0 SecurityLevelNormal uint8 = 1