소스 검색

Simplify return to null-coalescing return.

Brandon Thetford 1 년 전
부모
커밋
9adc9d431b
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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;
                 }
             }
         }