﻿namespace NetIRC.Messages
{
    public class PingMessage : IRCMessage, IServerMessage
    {
        public string Target { get; }

        public PingMessage(ParsedIRCMessage parsedMessage)
        {
            Target = parsedMessage.Trailing ?? parsedMessage.Parameters[0];
        }
    }
}

﻿namespace NetIRC.Messages
{
    public class PingMessage : IRCMessage, IServerMessage
    {
        public string Target { get; }

        public PingMessage(ParsedIRCMessage parsedMessage)
        {
            Target = parsedMessage.Trailing;
        }
    }
}

Remove unnecessary null coalescing operator
Remove unnecessary null coalescing operator
