diff --git a/cmd/rauc-custom-boot-handler/cmd.go b/cmd/rauc-custom-boot-handler/cmd.go index 7c73a4fce73fb5295c96535468349411fa8563ba..2c97ad242536699dbe74064449a56565ca231841 100644 --- a/cmd/rauc-custom-boot-handler/cmd.go +++ b/cmd/rauc-custom-boot-handler/cmd.go @@ -129,7 +129,7 @@ func (cmd setPrimarySlotCmd) OneLiner() string { return "set the name of the primary slot" } -func (cmd setPrimarySlotCmd) Run(ctx context.Context, args []string) error { +func (cmd setPrimarySlotCmd) Run(_ context.Context, args []string) error { var slot boot.Slot switch len(args) { @@ -192,7 +192,7 @@ func (cmd setSlotStateCmd) OneLiner() string { return "set the state of a given slot" } -func (cmd setSlotStateCmd) Run(ctx context.Context, args []string) error { +func (cmd setSlotStateCmd) Run(_ context.Context, args []string) error { var slot boot.Slot var state boot.SlotState diff --git a/cmd/rauc-custom-boot-handler/cmd_test.go b/cmd/rauc-custom-boot-handler/cmd_test.go index f465f64798a2810e605a52b22abaf83ab15d4f32..bd4a3553014c7e4780f22673276ebd476f5c875f 100644 --- a/cmd/rauc-custom-boot-handler/cmd_test.go +++ b/cmd/rauc-custom-boot-handler/cmd_test.go @@ -61,7 +61,7 @@ func (s *cmdSuite) EnsureConn(c *C) *dbus.Conn { return s.conn } -func (s *cmdSuite) SetUpTest(c *C) { +func (s *cmdSuite) SetUpTest(_ *C) { s.handler.ResetCallbacks() } @@ -178,7 +178,7 @@ type suiteBase struct { cmd cmdr.Cmd } -func (s *suiteBase) SetUpTest(c *C) { +func (s *suiteBase) SetUpTest(_ *C) { s.handler.ResetCallbacks() s.cmd = rauccustomboothandler.InterfaceCmd{&s.handler} } diff --git a/cmd/rauc-post-install-handler/cmd.go b/cmd/rauc-post-install-handler/cmd.go index c15097371cfad62cb502526297ac22aa296bd854..983d7edadb5a44656022a8b8ecc4757578ee865c 100644 --- a/cmd/rauc-post-install-handler/cmd.go +++ b/cmd/rauc-post-install-handler/cmd.go @@ -32,7 +32,7 @@ func (cmd Cmd) OneLiner() string { } // Run constructs handler context and invokes the post-install method over D-Bus. -func (cmd Cmd) Run(ctx context.Context, args []string) error { +func (cmd Cmd) Run(_ context.Context, _ []string) error { return installdbus.Do(func(client *installdbus.Client, env *installhandler.Environment) error { return client.PostInstall(env) }) diff --git a/cmd/rauc-post-install-handler/cmd_test.go b/cmd/rauc-post-install-handler/cmd_test.go index 184c81519a7bd88c3dac285a9c8b2b6e24cf70b6..808bbdfa6f88d6ef80663e1413bbc22bf20a3993 100644 --- a/cmd/rauc-post-install-handler/cmd_test.go +++ b/cmd/rauc-post-install-handler/cmd_test.go @@ -34,7 +34,7 @@ type cmdSuite struct { var _ = Suite(&cmdSuite{}) -func (s *cmdSuite) SetUpTest(c *C) { +func (s *cmdSuite) SetUpTest(_ *C) { s.cmd = raucpostinstallhandler.Cmd{} } diff --git a/cmd/rauc-pre-install-handler/cmd.go b/cmd/rauc-pre-install-handler/cmd.go index 54aca4626296754a8dacd0f6ca248becb270ff09..438f0febad81426f8ffc88dfab495d42ca9afe62 100644 --- a/cmd/rauc-pre-install-handler/cmd.go +++ b/cmd/rauc-pre-install-handler/cmd.go @@ -32,7 +32,7 @@ func (cmd Cmd) OneLiner() string { } // Run constructs handler context and invokes the pre-install method over D-Bus. -func (cmd Cmd) Run(ctx context.Context, args []string) error { +func (cmd Cmd) Run(_ context.Context, _ []string) error { return installdbus.Do(func(client *installdbus.Client, env *installhandler.Environment) error { return client.PreInstall(env) }) diff --git a/cmd/rauc-pre-install-handler/cmd_test.go b/cmd/rauc-pre-install-handler/cmd_test.go index 4de920020d9c0c7901616aa32ca2e91a394d893f..03c655ec2ff25fa69e6be99de493b18359313e04 100644 --- a/cmd/rauc-pre-install-handler/cmd_test.go +++ b/cmd/rauc-pre-install-handler/cmd_test.go @@ -34,7 +34,7 @@ type cmdSuite struct { var _ = Suite(&cmdSuite{}) -func (s *cmdSuite) SetUpTest(c *C) { +func (s *cmdSuite) SetUpTest(_ *C) { s.cmd = raucpreinstallhandler.Cmd{} } diff --git a/cmd/sysota-mux/main_test.go b/cmd/sysota-mux/main_test.go index f8d28f0f77794fc963d02193407e58aa72fc5005..a2d8e461ed00823d61a47961fb5623897593d072 100644 --- a/cmd/sysota-mux/main_test.go +++ b/cmd/sysota-mux/main_test.go @@ -16,6 +16,6 @@ type mainSuite struct{} var _ = Suite(&mainSuite{}) -func (s *mainSuite) TestMain(c *C) { +func (s *mainSuite) TestMain(_ *C) { main.Main() } diff --git a/cmd/sysotactl/cmd_test.go b/cmd/sysotactl/cmd_test.go index 83f94b3071e420af79787c4a6f77c47ef13aa568..0f24e6c28153b5a0d4e41d27210594181b30b085 100644 --- a/cmd/sysotactl/cmd_test.go +++ b/cmd/sysotactl/cmd_test.go @@ -97,7 +97,7 @@ func (s *cmdSuite) TearDownSuite(c *C) { s.Suite.TearDownSuite(c) } -func (s *cmdSuite) SetUpTest(c *C) { +func (s *cmdSuite) SetUpTest(_ *C) { s.m.Lock() defer s.m.Unlock() diff --git a/cmd/sysotad/service_test.go b/cmd/sysotad/service_test.go index dcd549d7f499db13570165d913ffddf6dd7c46fd..9d5c1c0ae4eb1518ecd95c85b3ccc90defb28cac 100644 --- a/cmd/sysotad/service_test.go +++ b/cmd/sysotad/service_test.go @@ -61,7 +61,7 @@ func (s *serviceSuite) EnsureService(c *C) { } } -func (s *serviceSuite) SetUpTest(c *C) { +func (s *serviceSuite) SetUpTest(_ *C) { s.config = ota.Config{} s.state = ota.SystemState{} } diff --git a/cmd/sysotad/sysotad.go b/cmd/sysotad/sysotad.go index a282ef6af113fcb5f8fbe577d80266a0eeb8474a..65d02446592bc2e05f0fedc16d42a59943cd44ad 100644 --- a/cmd/sysotad/sysotad.go +++ b/cmd/sysotad/sysotad.go @@ -47,7 +47,7 @@ func (Cmd) OneLiner() string { } // Run implements the sysotad binary. -func (cmd *Cmd) Run(ctx context.Context, args []string) (err error) { +func (cmd *Cmd) Run(ctx context.Context, _ []string) (err error) { _, stdout, _ := cmdr.Stdio(ctx) // Connect to the system bus and defer disconnect on return. diff --git a/rauc/installhandler/installdbus/client_test.go b/rauc/installhandler/installdbus/client_test.go index d663d3861592e945f934a1a05f4feccc49624bcd..0f1d0eb0245eecc27d185a3563ebfe8b3c95e7a1 100644 --- a/rauc/installhandler/installdbus/client_test.go +++ b/rauc/installhandler/installdbus/client_test.go @@ -35,7 +35,7 @@ type clientSuite struct { var _ = Suite(&clientSuite{}) -func (s *clientSuite) SetUpTest(c *C) { +func (s *clientSuite) SetUpTest(_ *C) { s.handler.ResetCallbacks() }