Skip to content

Commit 60b6a83

Browse files
committed
Using more flow without comments
1 parent 257a412 commit 60b6a83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/community-cli-plugin/src/utils/getWorkspaceRoot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function getWorkspacePaths(packagePath: string): Array<string> {
6666
* - which (possibly via a glob) includes the project root
6767
*/
6868
export function getWorkspaceRoot(
69-
projectRoot /*: string */,
70-
candidatePath /*: string */ = projectRoot,
71-
) /*: ?string */ {
69+
projectRoot: string,
70+
candidatePath: string = projectRoot,
71+
): ?string {
7272
const workspacePaths = getWorkspacePaths(candidatePath);
7373
// If one of the workspaces match the project root, this is the workspace root
7474
// Note: While npm workspaces doesn't currently support globs, yarn does, which is why we use micromatch

0 commit comments

Comments
 (0)