Skip to content

Commit 68b9d33

Browse files
committed
fix: cleanup extra blank lines
1 parent e1e5f1f commit 68b9d33

File tree

7 files changed

+1
-10
lines changed

7 files changed

+1
-10
lines changed

samples/learn/schema/StarWarsSchema.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
5757
auto typeSubscription = schema::ObjectType::Make(R"gql(Subscription)gql"sv, R"md()md"sv);
5858
schema->AddType(R"gql(Subscription)gql"sv, typeSubscription);
5959

60-
6160
static const auto s_namesEpisode = getEpisodeNames();
6261
typeEpisode->AddEnumValues({
6362
{ s_namesEpisode[static_cast<std::size_t>(learn::Episode::NEW_HOPE)], R"md()md"sv, std::nullopt },

samples/proxy/schema/ProxySchema.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
4141
auto typeQueryResults = schema::ObjectType::Make(R"gql(QueryResults)gql"sv, R"md()md"sv);
4242
schema->AddType(R"gql(QueryResults)gql"sv, typeQueryResults);
4343

44-
4544
static const auto s_namesOperationType = getOperationTypeNames();
4645
typeOperationType->AddEnumValues({
4746
{ s_namesOperationType[static_cast<std::size_t>(proxy::OperationType::QUERY)], R"md()md"sv, std::nullopt },

samples/today/nointrospection/TodaySchema.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
9797
auto typeExpensive = schema::ObjectType::Make(R"gql(Expensive)gql"sv, R"md()md"sv);
9898
schema->AddType(R"gql(Expensive)gql"sv, typeExpensive);
9999

100-
101100
static const auto s_namesTaskState = getTaskStateNames();
102101
typeTaskState->AddEnumValues({
103102
{ s_namesTaskState[static_cast<std::size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv) },

samples/today/schema/TodaySchema.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
100100
auto typeExpensive = schema::ObjectType::Make(R"gql(Expensive)gql"sv, R"md()md"sv);
101101
schema->AddType(R"gql(Expensive)gql"sv, typeExpensive);
102102

103-
104103
static const auto s_namesTaskState = getTaskStateNames();
105104
typeTaskState->AddEnumValues({
106105
{ s_namesTaskState[static_cast<std::size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv) },

samples/validation/schema/ValidationSchema.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
7979
auto typeArguments = schema::ObjectType::Make(R"gql(Arguments)gql"sv, R"md()md"sv);
8080
schema->AddType(R"gql(Arguments)gql"sv, typeArguments);
8181

82-
8382
static const auto s_namesDogCommand = getDogCommandNames();
8483
typeDogCommand->AddEnumValues({
8584
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::SIT)], R"md()md"sv, std::nullopt },
8685
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::DOWN)], R"md()md"sv, std::nullopt },
8786
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::HEEL)], R"md()md"sv, std::nullopt }
8887
});
89-
9088
static const auto s_namesCatCommand = getCatCommandNames();
9189
typeCatCommand->AddEnumValues({
9290
{ s_namesCatCommand[static_cast<std::size_t>(validation::CatCommand::JUMP)], R"md()md"sv, std::nullopt }

src/SchemaGenerator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,8 +2275,7 @@ Operations::Operations()cpp";
22752275
{
22762276
bool firstValue = true;
22772277

2278-
sourceFile << R"cpp(
2279-
static const auto s_names)cpp"
2278+
sourceFile << R"cpp( static const auto s_names)cpp"
22802279
<< enumType.cppType << R"cpp( = get)cpp" << enumType.cppType
22812280
<< R"cpp(Names();
22822281
type)cpp" << enumType.cppType

src/introspection/IntrospectionSchema.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
4242
auto typeDirective = schema::ObjectType::Make(R"gql(__Directive)gql"sv, R"md()md"sv);
4343
schema->AddType(R"gql(__Directive)gql"sv, typeDirective);
4444

45-
4645
static const auto s_namesTypeKind = getTypeKindNames();
4746
typeTypeKind->AddEnumValues({
4847
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::SCALAR)], R"md()md"sv, std::nullopt },
@@ -54,7 +53,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
5453
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::LIST)], R"md()md"sv, std::nullopt },
5554
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::NON_NULL)], R"md()md"sv, std::nullopt }
5655
});
57-
5856
static const auto s_namesDirectiveLocation = getDirectiveLocationNames();
5957
typeDirectiveLocation->AddEnumValues({
6058
{ s_namesDirectiveLocation[static_cast<std::size_t>(introspection::DirectiveLocation::QUERY)], R"md()md"sv, std::nullopt },

0 commit comments

Comments
 (0)