Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in d6580ec according to the output
from Gofumpt and Prettier.

Details: #2237
  • Loading branch information
deepsource-autofix[bot] authored Dec 4, 2023
1 parent d6580ec commit 2b1cac5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/gateway/mirror/service/gateway_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ func (gm *GatewayMock) FromForwardedContext(ctx context.Context) string {

// BroadCast calls BroadCastFunc object.
func (gm *GatewayMock) BroadCast(ctx context.Context,
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) error) error {
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) error,
) error {
return gm.BroadCastFunc(ctx, f)

}

// Do calls DoFunc object.
func (gm *GatewayMock) Do(ctx context.Context, target string,
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) (interface{}, error)) (interface{}, error) {
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) (interface{}, error),
) (interface{}, error) {
return gm.DoFunc(ctx, target, f)

}

// DoMulti calls DoMultiFunc object.
func (gm *GatewayMock) DoMulti(ctx context.Context, targets []string,
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) error) error {
f func(_ context.Context, _ string, _ vald.ClientWithMirror, _ ...grpc.CallOption) error,
) error {
return gm.DoMultiFunc(ctx, targets, f)

}

// GRPCClient calls GRPCClientFunc object.
Expand Down

0 comments on commit 2b1cac5

Please sign in to comment.