@@ -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 )
@@ -916,7 +916,7 @@ internal async Task<HttpResponseMessage> UploadManifest(string packageName, stri
916916 }
917917 catch ( HttpRequestException e )
918918 {
919- throw new HttpRequestException ( "Error occured while trying to create manifest: " + e . Message ) ;
919+ throw new HttpRequestException ( "Error occurred while trying to create manifest: " + e . Message ) ;
920920 }
921921 }
922922
@@ -931,7 +931,7 @@ internal async Task<HttpContent> GetHttpContentResponseJObject(string url, Colle
931931 }
932932 catch ( HttpRequestException e )
933933 {
934- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
934+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
935935 }
936936 }
937937
@@ -1074,7 +1074,7 @@ internal async Task<HttpResponseHeaders> GetHttpResponseHeader(string url, HttpM
10741074 }
10751075 catch ( HttpRequestException e )
10761076 {
1077- throw new HttpRequestException ( "Error occured while trying to retrieve response header: " + e . Message ) ;
1077+ throw new HttpRequestException ( "Error occurred while trying to retrieve response header: " + e . Message ) ;
10781078 }
10791079 }
10801080
@@ -1117,7 +1117,7 @@ private async Task<HttpContent> SendContentRequestAsync(HttpRequestMessage messa
11171117 }
11181118 catch ( Exception e )
11191119 {
1120- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1120+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
11211121 }
11221122 }
11231123
@@ -1133,7 +1133,7 @@ private async Task<JObject> SendRequestAsync(HttpRequestMessage message)
11331133 }
11341134 catch ( Exception e )
11351135 {
1136- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1136+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
11371137 }
11381138
11391139 switch ( response . StatusCode )
@@ -1233,7 +1233,7 @@ private async Task<HttpResponseHeaders> SendRequestHeaderAsync(HttpRequestMessag
12331233 }
12341234 catch ( HttpRequestException e )
12351235 {
1236- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
1236+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
12371237 }
12381238 }
12391239
@@ -1264,7 +1264,7 @@ private async Task<HttpResponseMessage> PutRequestAsync(string url, string fileP
12641264 }
12651265 catch ( Exception e )
12661266 {
1267- throw new SendRequestException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1267+ throw new SendRequestException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
12681268 }
12691269 }
12701270
@@ -1552,7 +1552,7 @@ private bool TryCreateAndUploadManifest(string fullNupkgFile,
15521552 catch ( Exception e )
15531553 {
15541554 errRecord = new ErrorRecord (
1555- new UploadBlobException ( $ "Error occured while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
1555+ new UploadBlobException ( $ "Error occurred while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
15561556 "PackageManifestUploadError" ,
15571557 ErrorCategory . InvalidResult ,
15581558 _cmdletPassedIn ) ;
@@ -1741,7 +1741,7 @@ internal async Task<string> GetStartUploadBlobLocation(string packageName, strin
17411741 }
17421742 catch ( Exception e )
17431743 {
1744- throw new UploadBlobException ( $ "Error occured while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1744+ throw new UploadBlobException ( $ "Error occurred while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
17451745 }
17461746 }
17471747
@@ -1759,7 +1759,7 @@ internal async Task<HttpResponseMessage> EndUploadBlob(string location, string f
17591759 }
17601760 catch ( Exception e )
17611761 {
1762- throw new UploadBlobException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1762+ throw new UploadBlobException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
17631763 }
17641764 }
17651765
0 commit comments