fix: unused-parameter linter findings
Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
parent
3b9f8b555b
commit
0ab86a7e51
8 changed files with 21 additions and 22 deletions
|
|
@ -161,12 +161,12 @@ func (_m *Provider) Start(ctx context.Context, instance string) error {
|
|||
}
|
||||
|
||||
// Stop provides a mock function with given fields: ctx, instance, force
|
||||
func (_m *Provider) Stop(ctx context.Context, instance string, force bool) error {
|
||||
ret := _m.Called(ctx, instance, force)
|
||||
func (_m *Provider) Stop(ctx context.Context, instance string) error {
|
||||
ret := _m.Called(ctx, instance)
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string, bool) error); ok {
|
||||
r0 = rf(ctx, instance, force)
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
|
||||
r0 = rf(ctx, instance)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ type Provider interface {
|
|||
// RemoveAllInstances will remove all instances created by this provider.
|
||||
RemoveAllInstances(ctx context.Context) error
|
||||
// Stop shuts down the instance.
|
||||
Stop(ctx context.Context, instance string, force bool) error
|
||||
Stop(ctx context.Context, instance string) error
|
||||
// Start boots up an instance.
|
||||
Start(ctx context.Context, instance string) error
|
||||
// DisableJITConfig tells us if the provider explicitly disables JIT configuration and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue