Skip to content

Commit ae36b00

Browse files
committed
fix(cli/fix): reattach orphaned JSDoc to repairOwnership function
Move RepairOutcome type above the JSDoc so it's no longer wedged between the doc comment and the function. Update @returns to describe the new RepairOutcome[] return shape.
1 parent 00a89c1 commit ae36b00

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/commands/cli/fix.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ function resolveUid(username: string): number | null {
263263
}
264264
}
265265

266-
/**
267-
* Perform chown on the given ownership issues, transferring files to
268-
* `username`. Called only when the current process is already root.
269-
*
270-
* @returns Object with lists of human-readable success and failure messages
271-
*/
272266
/** Per-issue repair outcome, aligned by index with the input issues array */
273267
type RepairOutcome = {
274268
/** Whether the repair succeeded */
@@ -277,6 +271,12 @@ type RepairOutcome = {
277271
message: string;
278272
};
279273

274+
/**
275+
* Perform chown on the given ownership issues, transferring files to
276+
* `username`. Called only when the current process is already root.
277+
*
278+
* @returns Per-issue outcomes aligned by index with the input issues array
279+
*/
280280
async function repairOwnership(
281281
issues: OwnershipIssue[],
282282
username: string,

0 commit comments

Comments
 (0)