Skip to content

Commit 8bb3e77

Browse files
author
Mariusz Pasinski
committed
style: address linter issues
1 parent 2d17eb6 commit 8bb3e77

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react-native-node-api-modules/src/node/babel-plugin/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as t from "@babel/types";
66
import { packageDirectorySync } from "pkg-dir";
77
import { readPackageSync } from "read-pkg";
88

9-
import { getLibraryName, isNodeApiModule, NamingStrategy } from "../path-utils";
9+
import { isNodeApiModule } from "../path-utils";
1010

1111
type PluginOptions = {
1212
stripPathSuffix?: boolean;
@@ -109,7 +109,6 @@ export function plugin(): PluginObj {
109109
visitor: {
110110
CallExpression(p) {
111111
assertOptions(this.opts);
112-
const { stripPathSuffix = false } = this.opts;
113112
if (typeof this.filename !== "string") {
114113
// This transformation only works when the filename is known
115114
return;

packages/react-native-node-api-modules/src/node/path-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function isNodeApiModule(modulePath: string): boolean {
3636
try {
3737
fs.accessSync(modulePath.endsWith(".node") ? modulePath : `${modulePath}.node`);
3838
return true;
39-
} catch {}
39+
} catch { /* empty */ }
4040
}
4141
const dir = path.dirname(modulePath);
4242
const baseName = path.basename(modulePath, ".node");

0 commit comments

Comments
 (0)