analizators/s1125

This commit is contained in:
Anton Suhorukov 2022-01-21 14:01:52 +03:00
parent 473259657e
commit cd12b41cc6
5 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ namespace ASC.Data.Backup.Storage
public List<BackupRecord> GetScheduledBackupRecords()
{
return BackupContext.Backups.Where(b => b.IsScheduled == true).ToList();
return BackupContext.Backups.Where(b => b.IsScheduled).ToList();
}
public List<BackupRecord> GetBackupRecordsByTenantId(int tenantId)

View File

@ -75,7 +75,7 @@ namespace Textile.Blocks
}
// do htmlspecial if between <code>
if (codepre == true)
if (codepre)
{
//TODO: htmlspecialchars(line)
//line = Regex.Replace(line, @"&lt;(\/?" + offtags + ")&gt;", "<$1>");

View File

@ -58,7 +58,7 @@ namespace Textile.States
@"(\.\s?)?(?<tag>\|)" +
@"(?<content>.*)(?=\|)"
);
return (m.Success == false);
return (!m.Success);
}
protected string FormattedStylesAndAlignment()

View File

@ -151,7 +151,7 @@ namespace ASC.Files.Core.Data
{
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(title);
var query = GetFileQuery(r => r.Title == title && r.CurrentVersion == true && r.FolderId == parentId)
var query = GetFileQuery(r => r.Title == title && r.CurrentVersion && r.FolderId == parentId)
.AsNoTracking()
.OrderBy(r => r.CreateOn);

View File

@ -2315,7 +2315,7 @@ namespace ASC.Api.Settings
foreach (var tenant in tenants)
{
var progress = BackupAjaxHandler.GetBackupProgress(tenant.TenantId);
if (progress != null && progress.IsCompleted == false)
if (progress != null && !progress.IsCompleted)
{
throw new Exception();
}