Skip to content

Commit 53dc216

Browse files
authored
Merge pull request #9475 from dotnet/merges/master-to-release/dev16.7
Merge master to release/dev16.7
2 parents 535c1b9 + 0d1e1d4 commit 53dc216

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/fsharp/FSharp.Core/string.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,4 @@ namespace Microsoft.FSharp.Core
103103
check 0
104104

105105
[<CompiledName("Length")>]
106-
let length (str:string) =
107-
if String.IsNullOrEmpty str then
108-
0
109-
else
110-
str.Length
106+
let length (str:string) = if isNull str then 0 else str.Length

0 commit comments

Comments
 (0)