Skip to content

Commit a82aee0

Browse files
authored
Merge pull request #14 from typinghard/bugfix/6.0.0-rc1
Fixing some bugs
2 parents 1732e76 + 95e1d14 commit a82aee0

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

azure_pull_request.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pool:
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'

src/Entities/WorkItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/Extensions/HelperExtenions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)