From d9619e1151a21cdc902edfd988a93403aac48f0d Mon Sep 17 00:00:00 2001 From: SuhorukovAnton Date: Mon, 10 Jan 2022 18:13:54 +0300 Subject: [PATCH] analizators/U2U1006 --- .../services/ASC.ElasticSearch/Engine/FactoryIndexer.cs | 4 ++-- products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/services/ASC.ElasticSearch/Engine/FactoryIndexer.cs b/common/services/ASC.ElasticSearch/Engine/FactoryIndexer.cs index f45781ddd41..1f90cd008a0 100644 --- a/common/services/ASC.ElasticSearch/Engine/FactoryIndexer.cs +++ b/common/services/ASC.ElasticSearch/Engine/FactoryIndexer.cs @@ -546,9 +546,9 @@ public bool Support(T t) } } - public async Task SupportAsync(T t) + public Task SupportAsync(T t) { - return await FactoryIndexerCommon.CheckStateAsync(); + return FactoryIndexerCommon.CheckStateAsync(); } } diff --git a/products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs b/products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs index c32b5d1ba76..21c92f37ea2 100644 --- a/products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs +++ b/products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs @@ -354,9 +354,9 @@ public Stream GetFileStream(File file) { return GetFileStream(file, 0); } - public async Task GetFileStreamAsync(File file) + public Task GetFileStreamAsync(File file) { - return await GlobalStore.GetStore().GetReadStreamAsync(string.Empty, GetUniqFilePath(file), 0); + return GlobalStore.GetStore().GetReadStreamAsync(string.Empty, GetUniqFilePath(file), 0); } public File SaveFile(File file, Stream fileStream) @@ -1157,9 +1157,9 @@ public bool IsExistOnStorage(File file) return GlobalStore.GetStore().IsFile(GetUniqFilePath(file)); } - public async Task IsExistOnStorageAsync(File file) + public Task IsExistOnStorageAsync(File file) { - return await GlobalStore.GetStore().IsFileAsync(string.Empty, GetUniqFilePath(file)); + return GlobalStore.GetStore().IsFileAsync(string.Empty, GetUniqFilePath(file)); } private const string DiffTitle = "diff.zip";