Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Sep 12, 2024
1 parent 9da5fc0 commit 1f5aa59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/consuldp/xds.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
func (cdp *ConsulDataplane) director(ctx context.Context, fullMethodName string) (context.Context, *grpc.ClientConn, error) {
// check to ensure other unknown/unregistered RPCs are not proxied to the target consul server.
if !strings.Contains(fullMethodName, envoyADSMethodName) {
return ctx, nil, status.Errorf(codes.Unimplemented, fmt.Sprintf("Unknown method %s", fullMethodName))
return ctx, nil, status.Errorf(codes.Unimplemented, "Unknown method %s", fullMethodName)
}

var mdCopy metadata.MD
Expand Down

0 comments on commit 1f5aa59

Please sign in to comment.