Skip to content

Commit 18fdbae

Browse files
committed
pkg/machine/qemu: fix ST1016 linter warning on freebsd
> pkg/machine/qemu/stubber.go:92:23: ST1016: methods on the same type should have the same receiver name (seen 1x "v", 25x "q") (staticcheck) > func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error { > ^ Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent c860e67 commit 18fdbae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/machine/qemu/options_freebsd_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var (
66
QemuCommand = "qemu-system-x86_64"
77
)
88

9-
func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
9+
func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
1010
opts := []string{"-machine", "q35,accel=hvf:tcg", "-cpu", "host"}
1111
return opts
1212
}

pkg/machine/qemu/options_freebsd_arm64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var (
66
QemuCommand = "qemu-system-aarch64"
77
)
88

9-
func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
9+
func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
1010
opts := []string{
1111
"-machine", "virt",
1212
"-accel", "tcg",

0 commit comments

Comments
 (0)