Skip to content

Commit

Permalink
Lint cleanup for _ receivers
Browse files Browse the repository at this point in the history
Signed-off-by: Dionna Glaze <[email protected]>
  • Loading branch information
deeglaze committed May 2, 2023
1 parent 4496128 commit df775bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/client_macos.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const DefaultSevGuestDevicePath = "unknown"
type MacOSDevice struct{}

// Open is not supported on MacOS.
func (_ *MacOSDevice) Open(_ string) error {
func (*MacOSDevice) Open(_ string) error {
return fmt.Errorf("MacOS is unsupported")
}

Expand All @@ -37,11 +37,11 @@ func OpenDevice() (*MacOSDevice, error) {
}

// Close is not supported on MacOS.
func (_ *MacOSDevice) Close() error {
func (*MacOSDevice) Close() error {
return fmt.Errorf("MacOS is unsupported")
}

// Ioctl is not supported on MacOS.
func (_ *MacOSDevice) Ioctl(_ uintptr, _ any) (uintptr, error) {
func (*MacOSDevice) Ioctl(_ uintptr, _ any) (uintptr, error) {
return 0, fmt.Errorf("MacOS is unsupported")
}
6 changes: 3 additions & 3 deletions client/client_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
type WindowsDevice struct{}

// Open is not supported on Windows.
func (_ *WindowsDevice) Open(_ string) error {
func (*WindowsDevice) Open(_ string) error {
return fmt.Errorf("Windows is unsupported")
}

Expand All @@ -34,12 +34,12 @@ func OpenDevice() (*WindowsDevice, error) {
}

// Close is not supported on Windows.
func (_ *WindowsDevice) Close() error {
func (*WindowsDevice) Close() error {
return fmt.Errorf("Windows is unsupported")
}

// Ioctl is not supported on Windows.
func (_ *WindowsDevice) Ioctl(_ uintptr, _ any) (uintptr, error) {
func (*WindowsDevice) Ioctl(_ uintptr, _ any) (uintptr, error) {
// The GuestAttestation library on Windows is closed source.
return 0, fmt.Errorf("Windows is unsupported")
}

0 comments on commit df775bc

Please sign in to comment.