mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Correct code indentation format for file IndexingTaskExecutor.cs
Incorrect indentation format causes code reading difficulties.
This commit is contained in:
@@ -176,18 +176,18 @@ namespace Orchard.Indexing.Services {
|
||||
|
||||
var settings = GetTypeIndexingSettings(item);
|
||||
|
||||
// skip items from types which are not indexed
|
||||
// skip items from types which are not indexed
|
||||
if (settings.List.Contains(indexName)) {
|
||||
if (item.HasPublished()) {
|
||||
var published = _contentManager.Get(item.Id, VersionOptions.Published);
|
||||
IDocumentIndex documentIndex = ExtractDocumentIndex(published);
|
||||
if (item.HasPublished()) {
|
||||
var published = _contentManager.Get(item.Id, VersionOptions.Published);
|
||||
IDocumentIndex documentIndex = ExtractDocumentIndex(published);
|
||||
|
||||
if (documentIndex != null && documentIndex.IsDirty) {
|
||||
addToIndex.Add(documentIndex);
|
||||
if (documentIndex != null && documentIndex.IsDirty) {
|
||||
addToIndex.Add(documentIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (settings.List.Contains(indexName + ":latest")) {
|
||||
else if (settings.List.Contains(indexName + ":latest")) {
|
||||
IDocumentIndex documentIndex = ExtractDocumentIndex(item);
|
||||
|
||||
if (documentIndex != null && documentIndex.IsDirty) {
|
||||
@@ -207,8 +207,7 @@ namespace Orchard.Indexing.Services {
|
||||
}
|
||||
else {
|
||||
_transactionManager.RequireNew();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} while (loop);
|
||||
}
|
||||
@@ -240,10 +239,10 @@ namespace Orchard.Indexing.Services {
|
||||
if (settings.List.Contains(indexName)) {
|
||||
documentIndex = ExtractDocumentIndex(item.ContentItem);
|
||||
}
|
||||
else if (settings.List.Contains(indexName + ":latest")) {
|
||||
var latest = _contentManager.Get(item.Id, VersionOptions.Latest);
|
||||
documentIndex = ExtractDocumentIndex(latest);
|
||||
}
|
||||
else if (settings.List.Contains(indexName + ":latest")) {
|
||||
var latest = _contentManager.Get(item.Id, VersionOptions.Latest);
|
||||
documentIndex = ExtractDocumentIndex(latest);
|
||||
}
|
||||
}
|
||||
|
||||
if (documentIndex == null || item.Delete) {
|
||||
@@ -266,8 +265,8 @@ namespace Orchard.Indexing.Services {
|
||||
else {
|
||||
_transactionManager.RequireNew();
|
||||
}
|
||||
}
|
||||
while (loop);
|
||||
|
||||
} while (loop);
|
||||
}
|
||||
|
||||
// save current state of the index
|
||||
|
Reference in New Issue
Block a user