Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 • committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -56,10 +56,7 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public string BoardName{ get; set; }
public static bool CheckTime(DateTime time, TimeSpan range)
{
return time + range < DateTime.UtcNow;
}
public static bool CheckTime(DateTime time, TimeSpan range) => time + range < DateTime.UtcNow;
public static string FormatTS(TimeSpan ts)
{
@ -367,20 +364,11 @@ namespace Server.Items
public string[] Lines{ get; private set; }
public string GetTimeAsString()
{
return Time.ToString("MMM dd, yyyy");
}
public string GetTimeAsString() => Time.ToString("MMM dd, yyyy");
public override bool CheckTarget(Mobile from, Target targ, object targeted)
{
return false;
}
public override bool CheckTarget(Mobile from, Target targ, object targeted) => false;
public override bool IsAccessibleTo(Mobile check)
{
return false;
}
public override bool IsAccessibleTo(Mobile check) => false;
public override void Serialize(GenericWriter writer)
{
@ -528,10 +516,7 @@ namespace Server.Items
m_Stream.Write((byte)0);
}
public string SafeString(string v)
{
return v ?? string.Empty;
}
public string SafeString(string v) => v ?? string.Empty;
}
public class BBMessageContent : Packet