From 437e22358d3a41f80702475f3fed1b6f22bc106b Mon Sep 17 00:00:00 2001 From: nojaf Date: Mon, 20 Feb 2023 11:09:20 +0100 Subject: [PATCH] Remove redundant elif --- src/Fantomas.Core/MultipleDefineCombinations.fs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Fantomas.Core/MultipleDefineCombinations.fs b/src/Fantomas.Core/MultipleDefineCombinations.fs index 57e902258f..2e8e25afc8 100644 --- a/src/Fantomas.Core/MultipleDefineCombinations.fs +++ b/src/Fantomas.Core/MultipleDefineCombinations.fs @@ -69,11 +69,6 @@ type CodeFragment = 1 elif ownLineCount < otherLineCount then -1 - elif - String.IsNullOrWhiteSpace ownContent - && not (String.IsNullOrWhiteSpace otherContent) - then - -1 elif hasOwnContent && not hasOtherContent then 1 elif not hasOwnContent && hasOtherContent then @@ -90,9 +85,7 @@ type CodeFragment = else 0 // This is an unexpected situation. // You should never enter the case where you need to compare a hash line with something other than a hash line. - | x, other -> - // TODO: throw custom exception? - failwith $"Cannot compare %A{x} with %A{other}" + | x, other -> failwith $"Cannot compare %A{x} with %A{other}" type FormatResultForDefines = { Result: FormatResult