Skip to content

Commit 6515b3e

Browse files
committed
Build error removed 'nameof'
1 parent d5a46e9 commit 6515b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.ServiceManagement/Commands/Restart-AzureAsInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected override void BeginProcessing()
6666
#pragma warning disable 0618
6767
if (Instance == null)
6868
{
69-
throw new PSArgumentNullException(nameof(Instance), "Name of Azure Analysis Services server not specified");
69+
throw new PSArgumentNullException("Instance", "Name of Azure Analysis Services server not specified");
7070
}
7171

7272
if (AsAzureClientSession.Instance.Profile.Environments.Count == 0)
@@ -131,7 +131,7 @@ public static async Task<HttpResponseMessage> CallPostAsync(Uri baseURI, string
131131
{
132132
if (accessToken == null)
133133
{
134-
throw new PSArgumentNullException(nameof(accessToken), string.Format(Resources.NotLoggedInMessage, ""));
134+
throw new PSArgumentNullException("accessToken", string.Format(Resources.NotLoggedInMessage, ""));
135135
}
136136

137137
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);

0 commit comments

Comments
 (0)