use Task.FromResult()

This commit is contained in:
sbwalker
2024-07-17 16:22:01 -04:00
parent 5a2af6d0f9
commit d822225465
2 changed files with 4 additions and 10 deletions

View File

@ -49,10 +49,8 @@ namespace Oqtane.Modules.HtmlText.Manager
return content;
}
public async Task<List<SearchContent>> GetSearchContentsAsync(PageModule pageModule, DateTime lastIndexedOn)
public Task<List<SearchContent>> GetSearchContentsAsync(PageModule pageModule, DateTime lastIndexedOn)
{
await Task.CompletedTask;
var searchContents = new List<SearchContent>();
var htmltexts = _htmlText.GetHtmlTexts(pageModule.ModuleId);
@ -72,7 +70,7 @@ namespace Oqtane.Modules.HtmlText.Manager
}
}
return searchContents;
return Task.FromResult(searchContents);
}
public void ImportModule(Module module, string content, string version)