Skip to content

Commit

Permalink
interfaces/builtin/common.go: comment tidying up, no functional changes
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <[email protected]>
  • Loading branch information
Robert P. J. Day authored and alexmurray committed Oct 17, 2023
1 parent 58777cd commit 6ea10db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interfaces/builtin/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"github.com/snapcore/snapd/snap"
)

// evalSymlinks is either filepath.EvalSymlinks or a mocked function for
// evalSymlinks is either filepath.EvalSymlinks or a mocked function
// applicable for testing.
var evalSymlinks = filepath.EvalSymlinks

// readDir is either ioutil.ReadDir or a mocked function for applicable for
// readDir is either ioutil.ReadDir or a mocked function applicable for
// testing.
var readDir = ioutil.ReadDir

Expand Down Expand Up @@ -125,7 +125,7 @@ func (iface *commonInterface) AppArmorConnectedPlug(spec *apparmor.Specification
}

// AutoConnect returns whether plug and slot should be implicitly
// auto-connected assuming they will be an unambiguous connection
// auto-connected assuming there will be an unambiguous connection
// candidate and declaration-based checks allow.
//
// By default we allow what declarations allowed.
Expand Down Expand Up @@ -186,7 +186,7 @@ func (iface *commonInterface) SecCompConnectedPlug(spec *seccomp.Specification,
}

func (iface *commonInterface) UDevConnectedPlug(spec *udev.Specification, plug *interfaces.ConnectedPlug, slot *interfaces.ConnectedSlot) error {
// don't tag devices if the interface controls it's own device cgroup
// don't tag devices if the interface controls its own device cgroup
if iface.controlsDeviceCgroup {
spec.SetControlsDeviceCgroup()
} else {
Expand Down

0 comments on commit 6ea10db

Please sign in to comment.