Skip to content

Commit

Permalink
pr feedback: inline nolint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim An <[email protected]>
  • Loading branch information
anmaxvl committed Apr 11, 2022
1 parent a5cc184 commit 25b45d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/security/grantvmgroupaccess.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ const (
// include Grant ACE entries for the VM Group SID. This is a golang re-
// implementation of the same function in vmcompute, just not exported in
// RS5. Which kind of sucks. Sucks a lot :/
//nolint:stylecheck // ST1003
func GrantVmGroupAccess(name string) error {
func GrantVmGroupAccess(name string) error { //nolint:stylecheck // ST1003
return GrantVmGroupAccessWithMask(name, accessMaskDesiredPermission)
}

// GrantVmGroupAccessWithMask sets the desired DACL for a specified file or
// directory.
//nolint:stylecheck // ST1003
func GrantVmGroupAccessWithMask(name string, access accessMask) error {
func GrantVmGroupAccessWithMask(name string, access accessMask) error { //nolint:stylecheck // ST1003
if access == 0 || access<<4 != 0 {
return fmt.Errorf("invalid access mask: 0x%08x", access)
}
Expand Down

0 comments on commit 25b45d1

Please sign in to comment.