analizators/s1125
This commit is contained in:
parent
473259657e
commit
cd12b41cc6
@ -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)
|
||||
|
@ -75,7 +75,7 @@ namespace Textile.Blocks
|
||||
}
|
||||
|
||||
// do htmlspecial if between <code>
|
||||
if (codepre == true)
|
||||
if (codepre)
|
||||
{
|
||||
//TODO: htmlspecialchars(line)
|
||||
//line = Regex.Replace(line, @"<(\/?" + offtags + ")>", "<$1>");
|
||||
|
@ -58,7 +58,7 @@ namespace Textile.States
|
||||
@"(\.\s?)?(?<tag>\|)" +
|
||||
@"(?<content>.*)(?=\|)"
|
||||
);
|
||||
return (m.Success == false);
|
||||
return (!m.Success);
|
||||
}
|
||||
|
||||
protected string FormattedStylesAndAlignment()
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user