Skip to content

Commit 7ff6b62

Browse files
committed
fix(formating): white spaces
1 parent 8fe9dca commit 7ff6b62

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

KVA/Migration.Tool.Source/Handlers/MigratePagesCommandHandler.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ public async Task<CommandResult> Handle(MigratePagesCommand request, Cancellatio
191191
? (Guid?)null
192192
: spoiledGuidContext.EnsureNodeGuid(ksNodeParent);
193193

194-
var classMapping = classMappingProvider.GetMapping(ksNodeClass.ClassName);
195-
var targetClass = classMapping != null
196-
? DataClassInfoProvider.ProviderObject.Get(classMapping.TargetClassName)
197-
: DataClassInfoProvider.ProviderObject.Get(ksNodeClass.ClassGUID);
194+
var classMapping = classMappingProvider.GetMapping(ksNodeClass.ClassName);
195+
var targetClass = classMapping != null
196+
? DataClassInfoProvider.ProviderObject.Get(classMapping.TargetClassName)
197+
: DataClassInfoProvider.ProviderObject.Get(ksNodeClass.ClassGUID);
198198

199199
var results = mapper.Map(new CmsTreeMapperSource(
200200
ksNode,
@@ -276,23 +276,23 @@ await MigratePageUrlPaths(ksSite.SiteGUID,
276276
var urls = WebPageUrlPathInfo.Provider.Get()
277277
.WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebPageItemID), webPageItemInfo.WebPageItemID);
278278

279-
if (urls.Count < 1)
280-
{
281-
logger.LogWarning("No url for page {Page}", new { webPageItemInfo.WebPageItemName, webPageItemInfo.WebPageItemTreePath, webPageItemInfo.WebPageItemGUID });
282-
}
283-
}
284-
else
285-
{
286-
if (nodeParentGuid is { } npg && ContentItemInfo.Provider.Get(npg) is { ContentItemIsReusable: true })
287-
{
288-
logger.LogTrace("No webpage item produced for '{NodeAliasPath}' - parent is reusable, possibly converted with mapping?", ksNode.NodeAliasPath);
279+
if (urls.Count < 1)
280+
{
281+
logger.LogWarning("No url for page {Page}", new { webPageItemInfo.WebPageItemName, webPageItemInfo.WebPageItemTreePath, webPageItemInfo.WebPageItemGUID });
282+
}
289283
}
290284
else
291285
{
292-
logger.LogTrace("No webpage item produced for '{NodeAliasPath}'", ksNode.NodeAliasPath);
286+
if (nodeParentGuid is { } npg && ContentItemInfo.Provider.Get(npg) is { ContentItemIsReusable: true })
287+
{
288+
logger.LogTrace("No webpage item produced for '{NodeAliasPath}' - parent is reusable, possibly converted with mapping?", ksNode.NodeAliasPath);
289+
}
290+
else
291+
{
292+
logger.LogTrace("No webpage item produced for '{NodeAliasPath}'", ksNode.NodeAliasPath);
293+
}
293294
}
294295
}
295-
}
296296

297297
catch (Exception ex)
298298
{

KVA/Migration.Tool.Source/Helpers/MediaHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static class MediaHelper
4444
new SqlParameter("fileSiteID", linkSiteId))
4545
.ToList() switch
4646
{
47-
[var mediaFile] => mediaFile,
47+
[var mediaFile] => mediaFile,
4848
{ Count: > 1 } => throw new InvalidOperationException($"Multiple media file were found for path {path}, site {linkSiteId} and library {libraryDir}"),
4949
{ Count: 0 } =>
5050
// this may happen and is valid scenario

0 commit comments

Comments
 (0)