File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 11pool :
2+ vmImage : ubuntu-latest
23 name : Azure Pipelines
34 demands : java
45
@@ -21,15 +22,8 @@ steps:
2122
2223 - task : CmdLine@2
2324 inputs :
24- script : dotnet build --no-incremental
25- displayName : ' Run dotnet build'
26-
27- - task : DotNetCoreCLI@2
28- displayName : ' Run dotnet test'
29- inputs :
30- command : test
31- projects : ' **/*[Tt]ests/*.csproj'
32- arguments : ' --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]*'
25+ script : dotnet test --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]*
26+ displayName : ' Run Tests'
3327
3428- task : SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
3529 displayName : ' Run Code Analysis'
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public void AddTimeByState(TimeByState timeByState)
9595
9696 public void AddTimesByState ( IEnumerable < TimeByState > timesByState )
9797 {
98- if ( timesByState is not null && ! timesByState . Any ( ) )
98+ if ( timesByState is null || timesByState ? . Any ( ) == false )
9999 return ;
100100
101101 foreach ( var timeByState in timesByState )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static string ExtractEmail(this string user)
2525 if ( ! user . Contains ( " <" ) && ! user . TrimEnd ( ) . Contains ( ">" ) )
2626 return user ;
2727
28- return user . Split ( "<" ) . LastOrDefault ( ) . Split ( ">" ) . FirstOrDefault ( ) ;
28+ return user . Split ( "<" ) . LastOrDefault ( ) ? . Split ( ">" ) ? . FirstOrDefault ( ) ;
2929 }
3030
3131 public static string ToTextTime ( this TimeSpan timeSpan )
You can’t perform that action at this time.
0 commit comments