Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -5,10 +5,10 @@ namespace Server.Misc
{
public class AutoSave : Timer
{
private static TimeSpan m_Delay = TimeSpan.FromMinutes(5.0);
private static TimeSpan m_Warning = TimeSpan.Zero;
private static readonly TimeSpan m_Delay = TimeSpan.FromMinutes(5.0);
private static readonly TimeSpan m_Warning = TimeSpan.Zero;
private static string[] m_Backups =
private static readonly string[] m_Backups =
{
"Third Backup",
"Second Backup",
@ -17,8 +17,8 @@ namespace Server.Misc
public AutoSave() : base(m_Delay - m_Warning, m_Delay) => Priority = TimerPriority.OneMinute;
public static bool SavesEnabled{ get; set; } = true;
//private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );
public static bool SavesEnabled { get; set; } = true;
// private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );
public static void Initialize()
{