Browse Source

Make this string comparison faster.

Brandon Thetford 1 year ago
parent
commit
1bc3595d0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Application.cs

+ 1 - 1
Terminal.Gui/Application.cs

@@ -253,7 +253,7 @@ public static partial class Application
             else
             {
                 List<Type> drivers = GetDriverTypes ();
-                Type driverType = drivers.FirstOrDefault (t => t.Name.ToLower () == ForceDriver.ToLower ());
+                Type driverType = drivers.FirstOrDefault (t => t.Name.Equals (ForceDriver, StringComparison.InvariantCultureIgnoreCase));
 
                 if (driverType is { })
                 {