Skip to content

Commit

Permalink
chore: run dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Sep 17, 2024
1 parent 037951e commit 840d32b
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableDeviceIdValueConverter() : this(null)

public NullableDeviceIdValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/DeviceIdValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/DeviceIdValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.
value => value == null ? null : DeviceId.Parse(value),
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableIdentityAddressValueConverter() : this(null)

public NullableIdentityAddressValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/IdentityAddressValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/IdentityAddressValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.
value => value == null ? null : IdentityAddress.ParseUnsafe(value.Trim()),
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableUsernameValueConverter() : this(null)

public NullableUsernameValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/UsernameValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.

Check failure on line 30 in BuildingBlocks/src/BuildingBlocks.Infrastructure/Persistence/Database/ValueConverters/UsernameValueConverter.cs

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An expression tree lambda may not contain a null propagating operator.
value => value == null ? null : Username.Parse(value),
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableCommunicationLanguageValueConverter() : this(null)

public NullableCommunicationLanguageValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : CommunicationLanguage.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableIdentityDeletionProcessAuditLogEntryIdEntityFrameworkValueConvert

public NullableIdentityDeletionProcessAuditLogEntryIdEntityFrameworkValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : IdentityDeletionProcessAuditLogEntryId.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableIdentityDeletionProcessIdEntityFrameworkValueConverter() : this(n

public NullableIdentityDeletionProcessIdEntityFrameworkValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : IdentityDeletionProcessId.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableTierIdValueConverter() : this(null)

public NullableTierIdValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : TierId.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public NullableTierNameValueConverter() : this(null)

public NullableTierNameValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : TierName.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableMetricKeyValueConverter() : this(null)

public NullableMetricKeyValueConverter(ConverterMappingHints? mappingHints)
: base(
metricKey => metricKey == null ? null : metricKey.Value,
metricKey => metricKey?.Value,
value => value == null ? null : MetricKey.Parse(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableQuotaIdValueConverter() : this(null)

public NullableQuotaIdValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : QuotaId.Create(value).Value,
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableTierIdValueConverter() : this(null)

public NullableTierIdValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : TierId.Parse(value),
mappingHints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public NullableTierQuotaDefinitionIdValueConverter() : this(null)

public NullableTierQuotaDefinitionIdValueConverter(ConverterMappingHints? mappingHints)
: base(
id => id == null ? null : id.Value,
id => id?.Value,
value => value == null ? null : TierQuotaDefinitionId.Create(value).Value,
mappingHints
)
Expand Down

0 comments on commit 840d32b

Please sign in to comment.