From 8e8f279b8d6be1f068d76fc035630ced2f86c229 Mon Sep 17 00:00:00 2001 From: Brendan McShane Date: Mon, 28 Nov 2022 21:55:05 -0500 Subject: [PATCH] Cleanliness changes --- Instagram Reels Bot/Services/Subscriptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);