Skip to content

Commit 62fef6e

Browse files
committed
Fixing warnings
1 parent 4cf9c07 commit 62fef6e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Source/Clients/DotNET/Events/Migrations/EventMigrationPropertyBuilder.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class EventMigrationPropertyBuilder : IEventMigrationPropertyBuilder
2525
/// <inheritdoc/>
2626
public void Split(PropertyName targetProperty, PropertyName sourceProperty, PropertySeparator separator, SplitPartIndex part)
2727
{
28-
var expression = new JsonObject
28+
_properties[(PropertyExpression)(string)targetProperty] = new JsonObject
2929
{
3030
[SplitExpression] = new JsonObject
3131
{
@@ -34,27 +34,24 @@ public void Split(PropertyName targetProperty, PropertyName sourceProperty, Prop
3434
["part"] = (int)part
3535
}
3636
};
37-
_properties[(PropertyExpression)(string)targetProperty] = expression;
3837
}
3938

4039
/// <inheritdoc/>
4140
public void Combine(PropertyName targetProperty, params PropertyName[] sourceProperties)
4241
{
43-
var expression = new JsonObject
42+
_properties[(PropertyExpression)(string)targetProperty] = new JsonObject
4443
{
4544
[CombineExpression] = new JsonArray(sourceProperties.Select(p => JsonValue.Create((string)p)).ToArray())
4645
};
47-
_properties[(PropertyExpression)(string)targetProperty] = expression;
4846
}
4947

5048
/// <inheritdoc/>
5149
public void RenamedFrom(PropertyName targetProperty, PropertyName oldName)
5250
{
53-
var expression = new JsonObject
51+
_properties[(PropertyExpression)(string)targetProperty] = new JsonObject
5452
{
5553
[RenameExpression] = (string)oldName
5654
};
57-
_properties[(PropertyExpression)(string)targetProperty] = expression;
5855
}
5956

6057
/// <inheritdoc/>

0 commit comments

Comments
 (0)