Skip to content

Commit

Permalink
fix: cleanup extra blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Sep 24, 2024
1 parent e1e5f1f commit 68b9d33
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion samples/learn/schema/StarWarsSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeSubscription = schema::ObjectType::Make(R"gql(Subscription)gql"sv, R"md()md"sv);
schema->AddType(R"gql(Subscription)gql"sv, typeSubscription);


static const auto s_namesEpisode = getEpisodeNames();
typeEpisode->AddEnumValues({
{ s_namesEpisode[static_cast<std::size_t>(learn::Episode::NEW_HOPE)], R"md()md"sv, std::nullopt },
Expand Down
1 change: 0 additions & 1 deletion samples/proxy/schema/ProxySchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeQueryResults = schema::ObjectType::Make(R"gql(QueryResults)gql"sv, R"md()md"sv);
schema->AddType(R"gql(QueryResults)gql"sv, typeQueryResults);


static const auto s_namesOperationType = getOperationTypeNames();
typeOperationType->AddEnumValues({
{ s_namesOperationType[static_cast<std::size_t>(proxy::OperationType::QUERY)], R"md()md"sv, std::nullopt },
Expand Down
1 change: 0 additions & 1 deletion samples/today/nointrospection/TodaySchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeExpensive = schema::ObjectType::Make(R"gql(Expensive)gql"sv, R"md()md"sv);
schema->AddType(R"gql(Expensive)gql"sv, typeExpensive);


static const auto s_namesTaskState = getTaskStateNames();
typeTaskState->AddEnumValues({
{ 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) },
Expand Down
1 change: 0 additions & 1 deletion samples/today/schema/TodaySchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeExpensive = schema::ObjectType::Make(R"gql(Expensive)gql"sv, R"md()md"sv);
schema->AddType(R"gql(Expensive)gql"sv, typeExpensive);


static const auto s_namesTaskState = getTaskStateNames();
typeTaskState->AddEnumValues({
{ 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) },
Expand Down
2 changes: 0 additions & 2 deletions samples/validation/schema/ValidationSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeArguments = schema::ObjectType::Make(R"gql(Arguments)gql"sv, R"md()md"sv);
schema->AddType(R"gql(Arguments)gql"sv, typeArguments);


static const auto s_namesDogCommand = getDogCommandNames();
typeDogCommand->AddEnumValues({
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::SIT)], R"md()md"sv, std::nullopt },
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::DOWN)], R"md()md"sv, std::nullopt },
{ s_namesDogCommand[static_cast<std::size_t>(validation::DogCommand::HEEL)], R"md()md"sv, std::nullopt }
});

static const auto s_namesCatCommand = getCatCommandNames();
typeCatCommand->AddEnumValues({
{ s_namesCatCommand[static_cast<std::size_t>(validation::CatCommand::JUMP)], R"md()md"sv, std::nullopt }
Expand Down
3 changes: 1 addition & 2 deletions src/SchemaGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2275,8 +2275,7 @@ Operations::Operations()cpp";
{
bool firstValue = true;

sourceFile << R"cpp(
static const auto s_names)cpp"
sourceFile << R"cpp( static const auto s_names)cpp"
<< enumType.cppType << R"cpp( = get)cpp" << enumType.cppType
<< R"cpp(Names();
type)cpp" << enumType.cppType
Expand Down
2 changes: 0 additions & 2 deletions src/introspection/IntrospectionSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
auto typeDirective = schema::ObjectType::Make(R"gql(__Directive)gql"sv, R"md()md"sv);
schema->AddType(R"gql(__Directive)gql"sv, typeDirective);


static const auto s_namesTypeKind = getTypeKindNames();
typeTypeKind->AddEnumValues({
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::SCALAR)], R"md()md"sv, std::nullopt },
Expand All @@ -54,7 +53,6 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::LIST)], R"md()md"sv, std::nullopt },
{ s_namesTypeKind[static_cast<std::size_t>(introspection::TypeKind::NON_NULL)], R"md()md"sv, std::nullopt }
});

static const auto s_namesDirectiveLocation = getDirectiveLocationNames();
typeDirectiveLocation->AddEnumValues({
{ s_namesDirectiveLocation[static_cast<std::size_t>(introspection::DirectiveLocation::QUERY)], R"md()md"sv, std::nullopt },
Expand Down

0 comments on commit 68b9d33

Please sign in to comment.