mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29: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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// setSelectedSecurityLevel updates the selected security level
|
// setSelectedSecurityLevel updates the selected security level.
|
||||||
func setSelectedSecurityLevel(r record.Record) (record.Record, error) {
|
func setSelectedSecurityLevel(r record.Record) (record.Record, error) {
|
||||||
var upd *SelectedSecurityLevelRecord
|
var upd *SelectedSecurityLevelRecord
|
||||||
if r.IsWrapped() {
|
if r.IsWrapped() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ type SystemStatusRecord struct {
|
||||||
|
|
||||||
// SelectedSecurityLevelRecord is used as a dummy record.Record
|
// SelectedSecurityLevelRecord is used as a dummy record.Record
|
||||||
// to provide a simply runtime-configuration for the user.
|
// 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 {
|
type SelectedSecurityLevelRecord struct {
|
||||||
record.Base
|
record.Base
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
|
|
|
@ -15,7 +15,7 @@ type (
|
||||||
// It's meant to be used as a value for config.DisplayHintAnnotation.
|
// It's meant to be used as a value for config.DisplayHintAnnotation.
|
||||||
const DisplayHintSecurityLevel string = "security level"
|
const DisplayHintSecurityLevel string = "security level"
|
||||||
|
|
||||||
// Security levels
|
// Security levels.
|
||||||
const (
|
const (
|
||||||
SecurityLevelOff uint8 = 0
|
SecurityLevelOff uint8 = 0
|
||||||
SecurityLevelNormal uint8 = 1
|
SecurityLevelNormal uint8 = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue