mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Use "nameof" instead of string
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Microsoft.AspNet.AngularServices {
|
|||||||
// HTTP requests made during server-side rendering, without risking unnecessary duplicate requests.
|
// HTTP requests made during server-side rendering, without risking unnecessary duplicate requests.
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(url)) {
|
if (string.IsNullOrEmpty(url)) {
|
||||||
throw new ArgumentException("Value cannot be null or empty", "url");
|
throw new ArgumentException("Value cannot be null or empty", nameof(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user