Explorar el Código

Simplify return to null-coalescing return.

Brandon Thetford hace 1 año
padre
commit
9adc9d431b
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1 6
      Terminal.Gui/View/Layout/ViewLayout.cs

+ 1 - 6
Terminal.Gui/View/Layout/ViewLayout.cs

@@ -580,12 +580,7 @@ public partial class View
                 {
                     View? deep = FindDeepestView (v, rx, ry, out resultX, out resultY);
 
-                    if (deep is null)
-                    {
-                        return v;
-                    }
-
-                    return deep;
+                    return deep ?? v;
                 }
             }
         }