Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing some bugs
  • Loading branch information
DiegoGalante committed Oct 26, 2022
commit b42ec72a5735e54865c408e577470ce89b36fc4d
2 changes: 1 addition & 1 deletion src/Entities/WorkItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void AddTimeByState(TimeByState timeByState)

public void AddTimesByState(IEnumerable<TimeByState> timesByState)
{
if (timesByState is not null && !timesByState.Any())
if (timesByState is null && !timesByState.Any())
return;

foreach (var timeByState in timesByState)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/HelperExtenions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static string ExtractEmail(this string user)
if (!user.Contains(" <") && !user.TrimEnd().Contains(">"))
return user;

return user.Split("<").LastOrDefault().Split(">").FirstOrDefault();
return user.Split("<").LastOrDefault()?.Split(">")?.FirstOrDefault();
}

public static string ToTextTime(this TimeSpan timeSpan)
Expand Down