forked from TeamInklings/Octobot
Use collection expressions in more places (#238)
ReSharper inspections have been updated, causing new warnings to appear in the codebase. This time, the "Use collection expressions" inspection has been enabled for usecases where the collection is not empty. This PR fixes the check failures caused by this inspection.
This commit is contained in:
parent
f79968fdc2
commit
74e32dee9b
5 changed files with 10 additions and 10 deletions
|
@ -28,11 +28,11 @@ namespace Octobot.Commands;
|
|||
public class AboutCommandGroup : CommandGroup
|
||||
{
|
||||
private static readonly (string Username, Snowflake Id)[] Developers =
|
||||
{
|
||||
[
|
||||
("Octol1ttle", new Snowflake(504343489664909322)),
|
||||
("mctaylors", new Snowflake(326642240229474304)),
|
||||
("neroduckale", new Snowflake(474943797063843851))
|
||||
};
|
||||
];
|
||||
|
||||
private readonly ICommandContext _context;
|
||||
private readonly IFeedbackService _feedback;
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SettingsCommandGroup : CommandGroup
|
|||
/// that the orders match.
|
||||
/// </remarks>
|
||||
private static readonly IOption[] AllOptions =
|
||||
{
|
||||
[
|
||||
GuildSettings.Language,
|
||||
GuildSettings.WelcomeMessage,
|
||||
GuildSettings.ReceiveStartupMessages,
|
||||
|
@ -51,7 +51,7 @@ public class SettingsCommandGroup : CommandGroup
|
|||
GuildSettings.MuteRole,
|
||||
GuildSettings.EventNotificationRole,
|
||||
GuildSettings.EventEarlyNotificationOffset
|
||||
};
|
||||
];
|
||||
|
||||
private readonly ICommandContext _context;
|
||||
private readonly IFeedbackService _feedback;
|
||||
|
|
|
@ -393,7 +393,7 @@ public class ToolsCommandGroup : CommandGroup
|
|||
}
|
||||
|
||||
private static readonly TimestampStyle[] AllStyles =
|
||||
{
|
||||
[
|
||||
TimestampStyle.ShortDate,
|
||||
TimestampStyle.LongDate,
|
||||
TimestampStyle.ShortTime,
|
||||
|
@ -401,7 +401,7 @@ public class ToolsCommandGroup : CommandGroup
|
|||
TimestampStyle.ShortDateTime,
|
||||
TimestampStyle.LongDateTime,
|
||||
TimestampStyle.RelativeTime
|
||||
};
|
||||
];
|
||||
|
||||
/// <summary>
|
||||
/// A slash command that shows the current timestamp with an optional offset in all styles supported by Discord.
|
||||
|
|
Reference in a new issue