Skip to content

Commit 548b0c8

Browse files
committed
move comment inside onProgress function (index.ts)
1 parent f469d85 commit 548b0c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { Files, ReplaceNativeSeparator, Run } from './utility.js';
55
import { createSfx } from './createSfx.js';
66
import { isWindows } from 'node-sys';
77

8-
/**
9-
* When a stdout is emitted, parse each line and search for a pattern. When
10-
* the pattern is found, extract the file (or directory) name from it and
11-
* pass it to an array. Finally returns this array.
12-
*/
138
const onProgress = (firstChar: string) =>
149
function(data: string): string[] {
10+
/**
11+
* When a stdout is emitted, parse each line and search for a pattern. When
12+
* the pattern is found, extract the file (or directory) name from it and
13+
* pass it to an array. Finally returns this array.
14+
*/
1515
return data.split('\n')
1616
.filter((line) => line.startsWith(firstChar))
1717
.map((line) => ReplaceNativeSeparator(line.slice(2)));

0 commit comments

Comments
 (0)