Skip to content

Commit

Permalink
Merge pull request #3 from ankitvijay/issue-1
Browse files Browse the repository at this point in the history
Issue#1: Minor code changes to test version increment
+semver: minor
  • Loading branch information
ankitvijay authored Apr 18, 2020
2 parents 89ac78d + d6d0f42 commit c830c83
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,9 @@ public static class DeveloperExceptionMiddlewareExtensions
/// <returns>A reference to the <paramref name="app"/> after the operation has completed.</returns>
public static IApplicationBuilder UseDeveloperExceptionResponse(this IApplicationBuilder app)
{
if (app == null)
{
throw new ArgumentNullException(nameof(app));
}

return app.UseMiddleware<DeveloperExceptionMiddleware>();
return app == null
? throw new ArgumentNullException(nameof(app))
: app.UseMiddleware<DeveloperExceptionMiddleware>();
}
}
}

0 comments on commit c830c83

Please sign in to comment.