Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xuluna committed Jan 2, 2024
1 parent a1780b9 commit 1c0dcc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/utils/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (mock *Mock) GetLoopBackDevice(pv string) (string, error) {
}

// DeleteLoopBackDevice deletes a loopbackdevice.
func (mock *Mock) DeleteLoopBackDevice(device string) ([]byte, error) {
func (mock *Mock) DeleteLoopBackDevice(_ string) ([]byte, error) {
delSucc := []byte("loopbackdevice")
if mock.InducedErrors.DeleteLoopBackDevice {
return nil, errors.New("induced DeleteLoopBackDevice error")
Expand All @@ -48,15 +48,15 @@ func (mock *Mock) DeleteLoopBackDevice(device string) ([]byte, error) {
}

// Unmount is a wrapper around syscall.Unmount
func (mock *Mock) Unmount(devName string, flags int) error {
func (mock *Mock) Unmount(_ string, _ int) error {
if mock.InducedErrors.Unmount {
return errors.New("induced Unmount error")
}
return nil
}

// Creat is a wrapper around syscall.Creat
func (mock *Mock) Creat(filepath string, flags int) (int, error) {
func (mock *Mock) Creat(_ string, _ int) (int, error) {
if mock.InducedErrors.Creat {
return 1, errors.New("induced Creat error")
}
Expand Down

0 comments on commit 1c0dcc7

Please sign in to comment.