@@ -75,7 +75,7 @@ public ContainerRegistryServerAPICalls(PSRepositoryInfo repository, PSCmdlet cmd
7575
7676 #endregion
7777
78- #region Overriden Methods
78+ #region Overridden Methods
7979
8080 /// <summary>
8181 /// Find method which allows for searching for all packages from a repository and returns latest version for each.
@@ -126,7 +126,7 @@ public override FindResults FindCommandOrDscResource(string[] tags, bool include
126126 /// Find method which allows for searching for single name and returns latest version.
127127 /// Name: no wildcard support
128128 /// Examples: Search "PowerShellGet"
129- /// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease dependening on user preference)
129+ /// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease depending on user preference)
130130 /// </summary>
131131 public override FindResults FindName ( string packageName , bool includePrerelease , ResourceType type , out ErrorRecord errRecord )
132132 {
@@ -451,12 +451,12 @@ internal string GetContainerRegistryAccessToken(bool needCatalogAccess, out Erro
451451 /// <summary>
452452 /// Checks if container registry repository is unauthenticated.
453453 /// </summary>
454- internal bool IsContainerRegistryUnauthenticated ( string containerRegistyUrl , bool needCatalogAccess , out ErrorRecord errRecord , out string anonymousAccessToken )
454+ internal bool IsContainerRegistryUnauthenticated ( string containerRegistryUrl , bool needCatalogAccess , out ErrorRecord errRecord , out string anonymousAccessToken )
455455 {
456456 _cmdletPassedIn . WriteDebug ( "In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()" ) ;
457457 errRecord = null ;
458458 anonymousAccessToken = string . Empty ;
459- string endpoint = $ "{ containerRegistyUrl } /v2/";
459+ string endpoint = $ "{ containerRegistryUrl } /v2/";
460460 HttpResponseMessage response ;
461461 try
462462 {
@@ -497,7 +497,7 @@ internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, boo
497497
498498 _cmdletPassedIn . WriteDebug ( $ "Getting anonymous access token from the realm: { url } ") ;
499499
500- // we dont check the errorrecord here because we want to return false if we get a 401 and not throw an error
500+ // we don't check the error record here because we want to return false if we get a 401 and not throw an error
501501 _cmdletPassedIn . WriteDebug ( $ "Getting anonymous access token from the realm: { url } ") ;
502502 ErrorRecord errRecordTemp = null ;
503503
@@ -644,7 +644,7 @@ internal JObject GetContainerRegistryRepositoryManifest(string packageName, stri
644644 }
645645
646646 /// <summary>
647- /// Get the blob for the package (ie repository in container registry terms) from the repositroy (ie registry in container registry terms)
647+ /// Get the blob for the package (ie repository in container registry terms) from the repository (ie registry in container registry terms)
648648 /// Used when installing the package
649649 /// </summary>
650650 internal async Task < HttpContent > GetContainerRegistryBlobAsync ( string packageName , string digest , string containerRegistryAccessToken )
@@ -918,7 +918,7 @@ internal async Task<HttpResponseMessage> UploadManifest(string packageName, stri
918918 }
919919 catch ( HttpRequestException e )
920920 {
921- throw new HttpRequestException ( "Error occured while trying to create manifest: " + e . Message ) ;
921+ throw new HttpRequestException ( "Error occurred while trying to create manifest: " + e . Message ) ;
922922 }
923923 }
924924
@@ -933,7 +933,7 @@ internal async Task<HttpContent> GetHttpContentResponseJObject(string url, Colle
933933 }
934934 catch ( HttpRequestException e )
935935 {
936- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
936+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
937937 }
938938 }
939939
@@ -1076,7 +1076,7 @@ internal async Task<HttpResponseHeaders> GetHttpResponseHeader(string url, HttpM
10761076 }
10771077 catch ( HttpRequestException e )
10781078 {
1079- throw new HttpRequestException ( "Error occured while trying to retrieve response header: " + e . Message ) ;
1079+ throw new HttpRequestException ( "Error occurred while trying to retrieve response header: " + e . Message ) ;
10801080 }
10811081 }
10821082
@@ -1119,7 +1119,7 @@ private async Task<HttpContent> SendContentRequestAsync(HttpRequestMessage messa
11191119 }
11201120 catch ( Exception e )
11211121 {
1122- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1122+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
11231123 }
11241124 }
11251125
@@ -1135,7 +1135,7 @@ private async Task<JObject> SendRequestAsync(HttpRequestMessage message)
11351135 }
11361136 catch ( Exception e )
11371137 {
1138- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1138+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
11391139 }
11401140
11411141 switch ( response . StatusCode )
@@ -1235,7 +1235,7 @@ private async Task<HttpResponseHeaders> SendRequestHeaderAsync(HttpRequestMessag
12351235 }
12361236 catch ( HttpRequestException e )
12371237 {
1238- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
1238+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
12391239 }
12401240 }
12411241
@@ -1266,7 +1266,7 @@ private async Task<HttpResponseMessage> PutRequestAsync(string url, string fileP
12661266 }
12671267 catch ( Exception e )
12681268 {
1269- throw new SendRequestException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1269+ throw new SendRequestException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
12701270 }
12711271 }
12721272
@@ -1554,7 +1554,7 @@ private bool TryCreateAndUploadManifest(string fullNupkgFile,
15541554 catch ( Exception e )
15551555 {
15561556 errRecord = new ErrorRecord (
1557- new UploadBlobException ( $ "Error occured while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
1557+ new UploadBlobException ( $ "Error occurred while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
15581558 "PackageManifestUploadError" ,
15591559 ErrorCategory . InvalidResult ,
15601560 _cmdletPassedIn ) ;
@@ -1743,7 +1743,7 @@ internal async Task<string> GetStartUploadBlobLocation(string packageName, strin
17431743 }
17441744 catch ( Exception e )
17451745 {
1746- throw new UploadBlobException ( $ "Error occured while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1746+ throw new UploadBlobException ( $ "Error occurred while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
17471747 }
17481748 }
17491749
@@ -1761,7 +1761,7 @@ internal async Task<HttpResponseMessage> EndUploadBlob(string location, string f
17611761 }
17621762 catch ( Exception e )
17631763 {
1764- throw new UploadBlobException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1764+ throw new UploadBlobException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
17651765 }
17661766 }
17671767
0 commit comments