Skip to content

Commit

Permalink
fixup! Check for nullity using "is null" or "is object"
Browse files Browse the repository at this point in the history
  • Loading branch information
blairconrad committed Sep 12, 2019
1 parent 25c421a commit be1dfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FakeItEasy/ServiceLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static ServiceLocator()
/// <typeparam name="T">Type of the service.</typeparam>
/// <returns>An instance of the service type.</returns>
[DebuggerStepThrough]
internal static T Resolve<T>()
internal static T Resolve<T>() where T : class
{
var service = Service<T>.Instance;
return service is null
Expand Down

0 comments on commit be1dfa8

Please sign in to comment.