Skip to content

Commit b42ec72

Browse files
committed
Fixing some bugs
1 parent 1732e76 commit b42ec72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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())
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)