Skip to content

Commit

Permalink
i/kmod/kmod_test: simplify variable declaration
Browse files Browse the repository at this point in the history
Thanks @miguelpirs for the suggestion.
  • Loading branch information
mardy committed Jun 23, 2022
1 parent 9a171cc commit 5f54619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/kmod/kmod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s *kmodSuite) TestModprobeCall(c *C) {
module string
options []string
}
calls := make([]CallRecord, 0)
var calls []CallRecord
restore := kmod.MockLoadModule(func(module string, options []string) error {
calls = append(calls, CallRecord{module, options})
return nil
Expand Down

0 comments on commit 5f54619

Please sign in to comment.