Skip to content

Commit ba8fddf

Browse files
committed
Fix noisy diagnostic on PR's relating to f# nullable check
1 parent 7c7c01e commit ba8fddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/authoring/Framework/MarkdownDocumentAssertions.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ module MarkdownDocumentAssertions =
3333
let matter = result.File.YamlFrontMatter
3434
match matter with
3535
| NonNull m ->
36-
if expectedAvailability <> null then
37-
m.AppliesTo.Diagnostics <- expectedAvailability.Diagnostics
36+
m.AppliesTo.Diagnostics <- expectedAvailability.Diagnostics
3837
let apply = m.AppliesTo
3938
test <@ apply = expectedAvailability @>
4039
| _ -> failwithf "%s has no yamlfront matter" result.File.RelativePath

0 commit comments

Comments
 (0)