From 68de42df88132f97ecdbf183453869a8e25c26c7 Mon Sep 17 00:00:00 2001 From: tony Date: Tue, 19 Jul 2022 13:10:54 +0100 Subject: [PATCH] tidy up code formatting --- src/google/protobuf/compiler/csharp/csharp_helpers.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/csharp/csharp_helpers.cc b/src/google/protobuf/compiler/csharp/csharp_helpers.cc index 8109d22eab..d40c9d39d7 100644 --- a/src/google/protobuf/compiler/csharp/csharp_helpers.cc +++ b/src/google/protobuf/compiler/csharp/csharp_helpers.cc @@ -190,7 +190,8 @@ std::string UnderscoresToCamelCase(const std::string& input, // start with a digit. // Note: not preserving leading underscores for all otherwise valid identifiers // so as to not break anything that relies on the existing behaviour - if (result.size() > 0 && ('0' <= result[0] && result[0] <= '9') && input.size() > 0 && input[0] == '_') + if (result.size() > 0 && ('0' <= result[0] && result[0] <= '9') + && input.size() > 0 && input[0] == '_') { result.insert(0, 1, '_'); }