diff --git a/Instagram Reels Bot/Services/Subscriptions.cs b/Instagram Reels Bot/Services/Subscriptions.cs index 64b1a3b..f65389a 100644 --- a/Instagram Reels Bot/Services/Subscriptions.cs +++ b/Instagram Reels Bot/Services/Subscriptions.cs @@ -434,8 +434,8 @@ public async Task GetLatestsPosts() // Wait to prevent spamming IG api // Get value from config: - int time = 10; - int.TryParse(_config["SubscribeCheckDelayTime"], out time); + int time; + _ = int.TryParse(_config["SubscribeCheckDelayTime"], out time); // Enforce a minimum of 10 seconds. time = Math.Max(time, 10); await Task.Delay(time * 1000);