File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/GraphQL.EntityFramework/Where Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -203,11 +203,6 @@ static List<T> GetEnumList<T>(IEnumerable<string> values)
203203 type = underlyingType ;
204204 }
205205
206- if ( value is null )
207- {
208- throw new ( $ "Expected value to be convertible to { type } . However it was null. It is possible a required variable was not provided") ;
209- }
210-
211206 if ( type == typeof ( DateTime ) )
212207 {
213208 return ValueConverter . ConvertTo < DateTime > ( value ) ;
@@ -230,12 +225,12 @@ static List<T> GetEnumList<T>(IEnumerable<string> values)
230225
231226 if ( type == typeof ( Guid ) )
232227 {
233- return new Guid ( value ) ;
228+ return new Guid ( value ! ) ;
234229 }
235230
236231 if ( type . IsEnum )
237232 {
238- return Enum . Parse ( type , value , true ) ;
233+ return Enum . Parse ( type , value ! , true ) ;
239234 }
240235
241236 return Convert . ChangeType ( value , type ) ;
You can’t perform that action at this time.
0 commit comments