File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class PackageDiscoverer {
2626
2727 /**
2828 * Discover the packages from the passed releases
29- * and replaces/adds it to the # packages array from
29+ * and replaces/adds it to the packages array from
3030 * the owner and repo name.
3131 *
3232 * @param owner the owner of the repository to use to populate the array
@@ -42,6 +42,7 @@ export class PackageDiscoverer {
4242 o == owner && repoName == n && ( dataFilter ?.( releases [ 0 ] ! ) ?? true )
4343 ) ;
4444 if ( ! repo ) return ;
45+
4546 // 2. Compute the unique packages
4647 const uniquePackages = [
4748 ...new Set (
@@ -53,6 +54,7 @@ export class PackageDiscoverer {
5354 } )
5455 )
5556 ] ;
57+
5658 // 3. Replace or add the value in the array
5759 for ( const [ i , { owner : o , repoName : n } ] of this . #packages. entries ( ) ) {
5860 if ( o === owner && repoName == n && this . #packages[ i ] ) {
@@ -65,8 +67,8 @@ export class PackageDiscoverer {
6567
6668 /**
6769 * A processing-heavy function that discovers all the
68- * packages for the given # repos.
69- * Populates the result into # packages.
70+ * packages for the repos.
71+ * Populates the result into packages.
7072 */
7173 async discoverAll ( ) {
7274 this . #packages = await Promise . all (
You can’t perform that action at this time.
0 commit comments