Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
s390x: fix golangci-lint
Browse files Browse the repository at this point in the history
Fix lint complains in the s390x files

Fixes: #1453

Signed-off-by: Alice Frosi <[email protected]>
  • Loading branch information
Alice Frosi committed Apr 2, 2019
1 parent 432eda0 commit 19458ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions cli/kata-check_s390x_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,50 +123,50 @@ func TestArchKernelParamHandler(t *testing.T) {

type testData struct {
onVMM bool
expectIgnore bool
fields logrus.Fields
msg string
expectIgnore bool
}

data := []testData{
{true, logrus.Fields{}, "", false},
{false, logrus.Fields{}, "", false},
{true, false, logrus.Fields{}, ""},
{false, false, logrus.Fields{}, ""},

{
false,
false,
logrus.Fields{
// wrong type
"parameter": 123,
},
"foo",
false,
},

{
false,
false,
logrus.Fields{
"parameter": "unrestricted_guest",
},
"",
false,
},

{
true,
true,
logrus.Fields{
"parameter": "unrestricted_guest",
},
"",
true,
},

{
false,
true,
logrus.Fields{
"parameter": "nested",
},
"",
true,
},
}

Expand Down
4 changes: 1 addition & 3 deletions virtcontainers/qemu_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func (q *qemuS390x) appendConsole(devices []govmmQemu.Device, path string) []gov

devices = append(devices, serial)

var console govmmQemu.CharDevice

console = govmmQemu.CharDevice{
console := govmmQemu.CharDevice{
Driver: govmmQemu.Console,
Backend: govmmQemu.Socket,
DeviceID: "console0",
Expand Down

0 comments on commit 19458ec

Please sign in to comment.