Error while compiling: Repairs.cs(23,0): error CS1525: Unexpected symbol `}'Solved

Hello, when compiling the code below i am getting this error Error while compiling: Repairs.cs(23,0): error CS1525: Unexpected symbol `}'. I am very fuzzled at how i am getting the error

   public class Repairs : RustPlugin
    {
        [ChatCommand("repair")]
        private void RepairCommand(BasePlayer player, string command, string[] args)
        {
            void OnLoseConditon(Item item, ref float amount)
            {
                PrintToChat($"{item} Has lost health!"); 
            }
            
        }
    }

nvm lol

Locked automatically