Skip to content

Commit

Permalink
Auto-format C# with dotnet-format
Browse files Browse the repository at this point in the history
Makes pre-commit checks happy
  • Loading branch information
alex-mccarthy-unity committed Mar 7, 2024
1 parent 6df9557 commit 2a12908
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ internal static partial class UnityToExternalProto
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (message is global::Google.Protobuf.IBufferMessage)
{
context.SetPayloadLength(message.CalculateSize());
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
context.Complete();
return;
}
#endif
#endif
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
}

Expand All @@ -40,12 +40,12 @@ static class __Helper_MessageCache<T>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T>
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (__Helper_MessageCache<T>.IsBufferMessage)
{
return parser.ParseFrom(context.PayloadAsReadOnlySequence());
}
#endif
#endif
return parser.ParseFrom(context.PayloadAsNewBuffer());
}

Expand Down

0 comments on commit 2a12908

Please sign in to comment.