Merge pull request #50 from tzachov/patch-2
Use "nameof" instead of string
This commit is contained in:
commit
cf9d109876
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.AngularServices {
|
|||
// HTTP requests made during server-side rendering, without risking unnecessary duplicate requests.
|
||||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue