diff --git a/client/client_macos.go b/client/client_macos.go index 0ce34fa..af2c91f 100644 --- a/client/client_macos.go +++ b/client/client_macos.go @@ -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") } @@ -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") } diff --git a/client/client_windows.go b/client/client_windows.go index 10914ed..9f70cda 100644 --- a/client/client_windows.go +++ b/client/client_windows.go @@ -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") } @@ -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") }