Skip to content

Commit 1bf47ed

Browse files
authored
Change 'APIKey' to 'ApiKey' (#443)
1 parent 7725e14 commit 1bf47ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/code/PublishPSResource.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public sealed class PublishPSResource : PSCmdlet
3434
/// </summary>
3535
[Parameter()]
3636
[ValidateNotNullOrEmpty]
37-
public string APIKey { get; set; }
37+
public string ApiKey { get; set; }
3838

3939
/// <summary>
4040
/// Specifies the repository to publish to.
@@ -844,7 +844,7 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
844844
sourceProvider: new PackageSourceProvider(settings),
845845
packagePath: fullNupkgFile,
846846
source: publishLocation,
847-
apiKey: APIKey,
847+
apiKey: ApiKey,
848848
symbolSource: null,
849849
symbolApiKey: null,
850850
timeoutSeconds: 0,
@@ -865,10 +865,10 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
865865
{
866866
if (e.Message.Contains("API"))
867867
{
868-
var message = String.Format("{0} Please try running again with the -APIKey parameter and specific API key for the repository specified.", e.Message);
868+
var message = String.Format("{0} Please try running again with the -ApiKey parameter and specific API key for the repository specified.", e.Message);
869869
ex = new ArgumentException(message);
870-
var APIKeyError = new ErrorRecord(ex, "APIKeyError", ErrorCategory.AuthenticationError, null);
871-
WriteError(APIKeyError);
870+
var ApiKeyError = new ErrorRecord(ex, "ApiKeyError", ErrorCategory.AuthenticationError, null);
871+
WriteError(ApiKeyError);
872872
}
873873
else
874874
{

0 commit comments

Comments
 (0)