Skip to content

Commit

Permalink
analizators/s1116
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Jan 21, 2022
1 parent 5f78b37 commit bf3b039
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion common/ASC.Core.Common/Caching/CachedUserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public Group GetGroup(int tenant, Guid id)
group = Service.GetGroup(tenant, id);

if (group != null) Cache.Insert(key, group, CacheExpiration);
};
}

return group;
}
Expand Down
2 changes: 1 addition & 1 deletion common/ASC.Core.Common/Data/DbSubscriptionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public bool IsUnsubscribe(int tenant, string sourceId, string actionId, string r
}
else
{
q = q = q.Where(r => r.Object == string.Empty);;
q = q = q.Where(r => r.Object == string.Empty);
}

return q.Any();
Expand Down
4 changes: 2 additions & 2 deletions common/ASC.Core.Common/Notify/Cron/CronExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ protected virtual int SkipWhiteSpace(int i, string s)
{
for (; i < s.Length && (s[i] == ' ' || s[i] == '\t'); i++)
{
;

}
return i;
}
Expand All @@ -815,7 +815,7 @@ protected virtual int FindNextWhiteSpace(int i, string s)
{
for (; i < s.Length && (s[i] != ' ' || s[i] != '\t'); i++)
{
;

}
return i;
}
Expand Down
2 changes: 1 addition & 1 deletion common/ASC.Data.Storage/StorageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private IDataStore GetDataStore(string tenant, string module, DataStoreConsumer
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
Expand Down
2 changes: 1 addition & 1 deletion common/services/ASC.Webhooks.Service/WebhookSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void UpdateDb(DbWorker dbWorker, int id, HttpResponseMessage response, H
{
var responseContent = streamReader.ReadToEnd();
responsePayload = JsonSerializer.Serialize(responseContent);
};
}

dbWorker.UpdateWebhookJournal(id, status, responsePayload, responseHeaders, requestHeaders);
}
Expand Down
2 changes: 1 addition & 1 deletion web/ASC.Web.Api/Controllers/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private AuthenticationTokenData AuthenticateMeWithCode(AuthModel auth)
var token = SecurityContext.AuthenticateMe(user.ID);

MessageService.Send(sms ? MessageAction.LoginSuccessViaApiSms : MessageAction.LoginSuccessViaApiTfa);
;

var expires = TenantCookieSettingsHelper.GetExpiresTime(tenant);

var result = new AuthenticationTokenData
Expand Down
2 changes: 1 addition & 1 deletion web/ASC.Web.Core/Calendars/RecurrenceRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public List<DateTime> GetDates(DateTime utcStartDate, TimeZoneInfo eventTimeZone
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;
Expand Down
2 changes: 1 addition & 1 deletion web/ASC.Web.Core/Users/UserPhotoManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ public void RemoveTempPhoto(string fileName)
var store = GetDataStore();
store.DeleteFiles(_tempDomainName, "", fileNameWithoutExt + "*.*", false);
}
catch { };
catch { }
}


Expand Down

0 comments on commit bf3b039

Please sign in to comment.