Make use of "or" keyword in switch statements (#2598)

This commit is contained in:
Sebastian Göls
2022-06-05 15:59:34 +02:00
committed by GitHub
parent 3041850b92
commit dae3e93031
5 changed files with 26 additions and 63 deletions

View File

@@ -867,8 +867,7 @@ public sealed class WebBrowser : IDisposable {
if (redirectUri.IsAbsoluteUri) {
switch (redirectUri.Scheme) {
case "http":
case "https":
case "http" or "https":
break;
case "steammobile":
// Those redirections are invalid, but we're aware of that and we have extra logic for them