From 0ff8ff024857e4259cd1c20d9672f1145a917e32 Mon Sep 17 00:00:00 2001 From: Zaprit Date: Sun, 20 Jul 2025 18:42:40 +0100 Subject: [PATCH] Use collection expression, because I'm metal like that --- .../Maintenance/Commands/RemoveTwoFactorCommand.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ProjectLighthouse/Administration/Maintenance/Commands/RemoveTwoFactorCommand.cs b/ProjectLighthouse/Administration/Maintenance/Commands/RemoveTwoFactorCommand.cs index d154ac1f..8a49660b 100644 --- a/ProjectLighthouse/Administration/Maintenance/Commands/RemoveTwoFactorCommand.cs +++ b/ProjectLighthouse/Administration/Maintenance/Commands/RemoveTwoFactorCommand.cs @@ -15,12 +15,12 @@ public class RemoveTwoFactorCommand : ICommand { public string Name() => "Remove Two Factor Authentication"; public string[] Aliases() - => new[] - { - "remove2fa", "rm2fa", - }; + => + [ + "removeTwoFactor", "rm2fa", + ]; public string Arguments() => ""; - public int RequiredArgs() => 2; + public int RequiredArgs() => 1; public async Task Run(IServiceProvider provider, string[] args, Logger logger) {