mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Fix some linter errors
This commit is contained in:
parent
971edcfa41
commit
7d6d679929
3 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue