File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed 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 @@ -22,10 +22,10 @@ public static string ExtractEmail(this string user)
2222 if ( user is null )
2323 return user ;
2424
25- if ( ! user . Contains ( " <" ) && ! user . TrimEnd ( ) . Contains ( ">" ) )
25+ 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