From bf3b0395a5c23d1c118b8581bf2ee10a2800c832 Mon Sep 17 00:00:00 2001 From: SuhorukovAnton Date: Fri, 21 Jan 2022 11:04:08 +0300 Subject: [PATCH] analizators/s1116 --- common/ASC.Core.Common/Caching/CachedUserService.cs | 2 +- common/ASC.Core.Common/Data/DbSubscriptionService.cs | 2 +- common/ASC.Core.Common/Notify/Cron/CronExpression.cs | 4 ++-- common/ASC.Data.Storage/StorageFactory.cs | 2 +- common/services/ASC.Webhooks.Service/WebhookSender.cs | 2 +- web/ASC.Web.Api/Controllers/AuthenticationController.cs | 2 +- web/ASC.Web.Core/Calendars/RecurrenceRule.cs | 2 +- web/ASC.Web.Core/Users/UserPhotoManager.cs | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/ASC.Core.Common/Caching/CachedUserService.cs b/common/ASC.Core.Common/Caching/CachedUserService.cs index 6be6a6de18..4dda7d2354 100644 --- a/common/ASC.Core.Common/Caching/CachedUserService.cs +++ b/common/ASC.Core.Common/Caching/CachedUserService.cs @@ -318,7 +318,7 @@ namespace ASC.Core.Caching group = Service.GetGroup(tenant, id); if (group != null) Cache.Insert(key, group, CacheExpiration); - }; + } return group; } diff --git a/common/ASC.Core.Common/Data/DbSubscriptionService.cs b/common/ASC.Core.Common/Data/DbSubscriptionService.cs index c97f98f197..60fdd42fbf 100644 --- a/common/ASC.Core.Common/Data/DbSubscriptionService.cs +++ b/common/ASC.Core.Common/Data/DbSubscriptionService.cs @@ -136,7 +136,7 @@ namespace ASC.Core.Data } else { - q = q = q.Where(r => r.Object == string.Empty);; + q = q = q.Where(r => r.Object == string.Empty); } return q.Any(); diff --git a/common/ASC.Core.Common/Notify/Cron/CronExpression.cs b/common/ASC.Core.Common/Notify/Cron/CronExpression.cs index 17ac36d4c7..0e36f0d3ff 100644 --- a/common/ASC.Core.Common/Notify/Cron/CronExpression.cs +++ b/common/ASC.Core.Common/Notify/Cron/CronExpression.cs @@ -806,7 +806,7 @@ namespace ASC.Notify.Cron { for (; i < s.Length && (s[i] == ' ' || s[i] == '\t'); i++) { - ; + } return i; } @@ -815,7 +815,7 @@ namespace ASC.Notify.Cron { for (; i < s.Length && (s[i] != ' ' || s[i] != '\t'); i++) { - ; + } return i; } diff --git a/common/ASC.Data.Storage/StorageFactory.cs b/common/ASC.Data.Storage/StorageFactory.cs index 908124d002..cfb0a16193 100644 --- a/common/ASC.Data.Storage/StorageFactory.cs +++ b/common/ASC.Data.Storage/StorageFactory.cs @@ -251,7 +251,7 @@ namespace ASC.Data.Storage props = handler.Property.ToDictionary(r => r.Name, r => r.Value); } - ; + return ((IDataStore)ActivatorUtilities.CreateInstance(ServiceProvider, instanceType)) .Configure(tenant, handler, moduleElement, props) .SetQuotaController(moduleElement.Count ? controller : null diff --git a/common/services/ASC.Webhooks.Service/WebhookSender.cs b/common/services/ASC.Webhooks.Service/WebhookSender.cs index 929d49bc8d..0055177d9c 100644 --- a/common/services/ASC.Webhooks.Service/WebhookSender.cs +++ b/common/services/ASC.Webhooks.Service/WebhookSender.cs @@ -111,7 +111,7 @@ namespace ASC.Webhooks.Service { var responseContent = streamReader.ReadToEnd(); responsePayload = JsonSerializer.Serialize(responseContent); - }; + } dbWorker.UpdateWebhookJournal(id, status, responsePayload, responseHeaders, requestHeaders); } diff --git a/web/ASC.Web.Api/Controllers/AuthenticationController.cs b/web/ASC.Web.Api/Controllers/AuthenticationController.cs index b2ea929c69..f0e073e22c 100644 --- a/web/ASC.Web.Api/Controllers/AuthenticationController.cs +++ b/web/ASC.Web.Api/Controllers/AuthenticationController.cs @@ -348,7 +348,7 @@ namespace ASC.Web.Api.Controllers var token = SecurityContext.AuthenticateMe(user.ID); MessageService.Send(sms ? MessageAction.LoginSuccessViaApiSms : MessageAction.LoginSuccessViaApiTfa); - ; + var expires = TenantCookieSettingsHelper.GetExpiresTime(tenant); var result = new AuthenticationTokenData diff --git a/web/ASC.Web.Core/Calendars/RecurrenceRule.cs b/web/ASC.Web.Core/Calendars/RecurrenceRule.cs index 1ddd5c5a8f..e99749ff90 100644 --- a/web/ASC.Web.Core/Calendars/RecurrenceRule.cs +++ b/web/ASC.Web.Core/Calendars/RecurrenceRule.cs @@ -513,7 +513,7 @@ namespace ASC.Web.Core.Calendars dateRange.RemoveAll(date => { var weekOfYear = date.GetWeekOfYear(this.WKST.DayOfWeek); - return ((!ByWeekNo.Contains(weekOfYear) && !ByWeekNo.Contains(weekOfYear - (date.GetWeekOfYearCount(this.WKST.DayOfWeek) + 1)))); + return !ByWeekNo.Contains(weekOfYear) && !ByWeekNo.Contains(weekOfYear - (date.GetWeekOfYearCount(this.WKST.DayOfWeek) + 1)); }); } isFirst = false; diff --git a/web/ASC.Web.Core/Users/UserPhotoManager.cs b/web/ASC.Web.Core/Users/UserPhotoManager.cs index 8680bd8e50..6619757da5 100644 --- a/web/ASC.Web.Core/Users/UserPhotoManager.cs +++ b/web/ASC.Web.Core/Users/UserPhotoManager.cs @@ -808,7 +808,7 @@ namespace ASC.Web.Core.Users var store = GetDataStore(); store.DeleteFiles(_tempDomainName, "", fileNameWithoutExt + "*.*", false); } - catch { }; + catch { } }