Skip to content

Commit c2ca1b9

Browse files
committed
Use yield instead of return
1 parent cebfeb7 commit c2ca1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/src/info/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async function findPackages(directory: string, maxDepth?: number) {
9898
if (item.isFile()) {
9999
if (item.name === 'package.json') {
100100
try {
101-
return await getPackageInfo(currentDir);
101+
yield await getPackageInfo(currentDir);
102102
} catch (error) {
103103
if (!utils.types.isNativeError(error)) {
104104
core.error(`Unknown error occurred ${error}`);

0 commit comments

Comments
 (0)