From 8381b8a2caee2db8fff40baa4daccee6c30cad8b Mon Sep 17 00:00:00 2001 From: Oscar Virot Date: Wed, 25 Dec 2024 14:01:11 +0100 Subject: [PATCH] Updated formating --- Module/Cmdlets/OTP/RemoveYubikeyOTP.cs | 2 +- Module/types/PIVSlot.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Module/Cmdlets/OTP/RemoveYubikeyOTP.cs b/Module/Cmdlets/OTP/RemoveYubikeyOTP.cs index 9eb953c..9db3fa5 100644 --- a/Module/Cmdlets/OTP/RemoveYubikeyOTP.cs +++ b/Module/Cmdlets/OTP/RemoveYubikeyOTP.cs @@ -39,7 +39,7 @@ protected override void ProcessRecord() using (var otpSession = new OtpSession((YubiKeyDevice)YubiKeyModule._yubikey!)) { // Check if the slot is configured, if not, Write Warning and continue - if ((Slot == Slot.ShortPress && ! otpSession.IsShortPressConfigured) || (Slot == Slot.LongPress && !otpSession.IsLongPressConfigured)) + if ((Slot == Slot.ShortPress && !otpSession.IsShortPressConfigured) || (Slot == Slot.LongPress && !otpSession.IsLongPressConfigured)) { WriteWarning($"Slot {Slot.ToString("d")} ({Slot}) is not configured."); return; diff --git a/Module/types/PIVSlot.cs b/Module/types/PIVSlot.cs index b57ef8a..2ba970d 100644 --- a/Module/types/PIVSlot.cs +++ b/Module/types/PIVSlot.cs @@ -168,7 +168,7 @@ public static implicit operator byte(PIVSlot slot) return slot.Value; } - public static implicit operator int(PIVSlot slot) + public static implicit operator int(PIVSlot slot) { return slot.Value; }