Skip to content

Commit 35e3160

Browse files
committed
Fix lint issues
1 parent a1ff2db commit 35e3160

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/host/src/node/cli/program.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
import {
1515
determineModuleContext,
1616
findNodeApiModulePathsByDependency,
17-
getAutolinkPath,
1817
getLibraryName,
1918
visualizeLibraryMap,
2019
normalizeModulePath,
@@ -36,10 +35,7 @@ export const program = new Command("react-native-node-api").addCommand(
3635
vendorHermes,
3736
);
3837

39-
async function createLinker(
40-
platform: PlatformName,
41-
fromPath: string,
42-
): Promise<ModuleLinker> {
38+
async function createLinker(platform: PlatformName): Promise<ModuleLinker> {
4339
if (platform === "android") {
4440
return linkAndroidDir;
4541
} else if (platform === "apple") {
@@ -100,7 +96,7 @@ program
10096
platform,
10197
fromPath: path.resolve(pathArg),
10298
naming: { packageName, pathSuffix },
103-
linker: await createLinker(platform, path.resolve(pathArg)),
99+
linker: await createLinker(platform),
104100
}),
105101
{
106102
text: `Linking ${platformDisplayName} Node-API modules`,

packages/host/src/node/cli/xcode-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function readXcodeWorkspace(workspacePath: string) {
4545

4646
export async function findXcodeWorkspace(fromPath: string) {
4747
// Check if the directory contains a Xcode workspace
48-
const xcodeWorkspace = await fs.promises.glob(path.join("*.xcworkspace"), {
48+
const xcodeWorkspace = fs.promises.glob(path.join("*.xcworkspace"), {
4949
cwd: fromPath,
5050
});
5151

0 commit comments

Comments
 (0)