Skip to content

Commit

Permalink
Fix #301
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Jul 19, 2024
1 parent a45352b commit 1fdcae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GraphQLResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ IdType Value::release<IdType>()
}

Value::Value(Type type /* = Type::Null */)
: _data { NullData {} }
{
switch (type)
{
Expand All @@ -911,10 +912,6 @@ Value::Value(Type type /* = Type::Null */)
_data = { StringData {} };
break;

case Type::Null:
_data = { NullData {} };
break;

case Type::Boolean:
_data = { BooleanType { false } };
break;
Expand All @@ -938,6 +935,9 @@ Value::Value(Type type /* = Type::Null */)
case Type::Scalar:
_data = { ScalarData {} };
break;

default:
break;
}
}

Expand Down

0 comments on commit 1fdcae6

Please sign in to comment.