Fix some linter errors

This commit is contained in:
Daniel 2021-02-11 13:07:02 +01:00
parent 971edcfa41
commit 7d6d679929
3 changed files with 3 additions and 3 deletions

View file

@ -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() {

View file

@ -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

View file

@ -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