Skip to content

Commit

Permalink
Fix somw 'Pattern discard is not allowed for union case that takes no…
Browse files Browse the repository at this point in the history
… data' build warnings (#2847)

These show up in the .NET 8 build
  • Loading branch information
Numpsy authored Jan 8, 2025
1 parent 3ee60b4 commit 78a2562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/Fake.BuildServer.TeamCity/TeamCity.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module TeamCityImportExtensions =
| ImportData.Junit -> "junit"
| ImportData.FxCop -> "FxCop"
| ImportData.Nunit _ -> "nunit"
| ImportData.Xunit _ -> "nunit"
| ImportData.Xunit -> "nunit"

///<summary>
/// Native support for TeamCity specific APIs.
Expand Down
6 changes: 3 additions & 3 deletions src/app/Fake.BuildServer.TeamFoundation/TeamFoundation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ module TeamFoundation =
| TagStatus.Failed -> "Failed", "ERROR"

setBuildState vsoState msg
| TraceData.ImportData (ImportData.Junit _, path) -> publishTests "JUnit" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Junit, path) -> publishTests "JUnit" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Nunit _, path) -> publishTests "NUnit" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Mstest _, path) -> publishTests "VSTest" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Xunit _, path) -> publishTests "XUnit" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Mstest, path) -> publishTests "VSTest" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.Xunit, path) -> publishTests "XUnit" [ path ] false "" "" "" true
| TraceData.ImportData (ImportData.BuildArtifactWithName name, path) ->
publishArtifactIfOk name (Some name) path
| TraceData.ImportData (typ, path) -> publishArtifactIfOk typ.Name (Some "fake-artifacts") path
Expand Down

0 comments on commit 78a2562

Please sign in to comment.