Skip to content

Commit

Permalink
[del] redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed May 16, 2024
1 parent 132b4ee commit 2eb43fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Simplify.Web/Modules/Context/WebContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ public string RequestBody

ReadRequestBodyAsync().Wait();

if (_requestBody == null)
throw new InvalidOperationException("Request body is null");

return _requestBody;
return _requestBody!;
}
}

Expand Down

0 comments on commit 2eb43fe

Please sign in to comment.