@@ -84,16 +84,19 @@ protected override void Migrate()
84
84
continue ;
85
85
}
86
86
87
- _logger . LogInformation ( "Migration starting for all properties of type: {propertyEditorAlias}" ,
87
+ _logger . LogInformation (
88
+ "Migration starting for all properties of type: {propertyEditorAlias}" ,
88
89
propertyEditorAlias ) ;
89
90
if ( Handle ( propertyTypes , languagesById ) )
90
91
{
91
- _logger . LogInformation ( "Migration succeeded for all properties of type: {propertyEditorAlias}" ,
92
+ _logger . LogInformation (
93
+ "Migration succeeded for all properties of type: {propertyEditorAlias}" ,
92
94
propertyEditorAlias ) ;
93
95
}
94
96
else
95
97
{
96
- _logger . LogError ( "Migration failed for one or more properties of type: {propertyEditorAlias}" ,
98
+ _logger . LogError (
99
+ "Migration failed for one or more properties of type: {propertyEditorAlias}" ,
97
100
propertyEditorAlias ) ;
98
101
}
99
102
}
@@ -154,7 +157,8 @@ private bool Handle(IPropertyType[] propertyTypes, IDictionary<int, ILanguage> l
154
157
Task task ;
155
158
using ( ExecutionContext . SuppressFlow ( ) )
156
159
{
157
- task = Task . Run ( ( ) =>
160
+ task = Task . Run (
161
+ ( ) =>
158
162
{
159
163
using ICoreScope scope = _coreScopeProvider . CreateCoreScope ( ) ;
160
164
scope . Complete ( ) ;
@@ -173,7 +177,8 @@ private bool Handle(IPropertyType[] propertyTypes, IDictionary<int, ILanguage> l
173
177
// NOTE: some old property data DTOs can have variance defined, even if the property type no longer varies
174
178
var culture = propertyType . VariesByCulture ( )
175
179
&& propertyDataDto . LanguageId . HasValue
176
- && languagesById . TryGetValue ( propertyDataDto . LanguageId . Value ,
180
+ && languagesById . TryGetValue (
181
+ propertyDataDto . LanguageId . Value ,
177
182
out ILanguage ? language )
178
183
? language . IsoCode
179
184
: null ;
0 commit comments