Skip to content

Commit

Permalink
Cleanliness changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bman46 committed Nov 29, 2022
1 parent 7e030c3 commit 8e8f279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Instagram Reels Bot/Services/Subscriptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e8f279

Please sign in to comment.