Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TryGetValue instead of ContainsKey + index access to avoid double…
… lookup (#193) This PR fixes an issue that is currently causing CI to fail in all pull requests: `Notice: "[CA1854] Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup" on /home/runner/work/Octobot/Octobot/src/Services/Update/ScheduledEventUpdateService.cs(107,4168)` The issue is resolved by following the advice mentioned in the notice.
- Loading branch information