mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
lint: reenable revive unused-parameter check
Signed-off-by: Matt Souza <medsouz99@gmail.com>
This commit is contained in:
@@ -243,7 +243,7 @@ func (q *QEMUStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() erro
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error) {
|
||||
func (q *QEMUStubber) State(mc *vmconfigs.MachineConfig, _ bool) (define.Status, error) {
|
||||
// Check if qmp socket path exists
|
||||
if err := fileutils.Exists(mc.QEMUHypervisor.QMPMonitor.Address.GetPath()); errors.Is(err, fs.ErrNotExist) {
|
||||
return define.Stopped, nil
|
||||
|
||||
@@ -25,10 +25,10 @@ func checkProcessStatus(processHint string, pid int, stderrBuf *bytes.Buffer) er
|
||||
return nil
|
||||
}
|
||||
|
||||
func sigKill(pid int) error {
|
||||
func sigKill(_ int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func findProcess(pid int) (int, error) {
|
||||
func findProcess(_ int) (int, error) {
|
||||
return -1, nil
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ func (q *QEMUStubber) setQEMUCommandLine(mc *vmconfigs.MachineConfig) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error {
|
||||
func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, _ *ignition.IgnitionBuilder) error {
|
||||
monitor, err := command.NewQMPMonitor(opts.Name, opts.Dirs.RuntimeDir)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -243,7 +243,7 @@ func waitForReady(readySocket *define.VMFile, pid int, stdErrBuffer *bytes.Buffe
|
||||
return err
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) Exists(name string) (bool, error) {
|
||||
func (q *QEMUStubber) Exists(_ string) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
@@ -380,15 +380,15 @@ func (q *QEMUStubber) MountType() vmconfigs.VolumeMountType {
|
||||
return vmconfigs.VirtIOFS
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error {
|
||||
func (q *QEMUStubber) PostStartNetworking(_ *vmconfigs.MachineConfig, _ bool) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error {
|
||||
func (q *QEMUStubber) UpdateSSHPort(_ *vmconfigs.MachineConfig, _ int) error {
|
||||
// managed by gvproxy on this backend, so nothing to do
|
||||
return nil
|
||||
}
|
||||
|
||||
func (q *QEMUStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error) {
|
||||
func (q *QEMUStubber) GetRosetta(_ *vmconfigs.MachineConfig) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user