File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
packages/react-native-node-api-modules/src/node Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as t from "@babel/types";
66import { packageDirectorySync } from "pkg-dir" ;
77import { readPackageSync } from "read-pkg" ;
88
9- import { getLibraryName , isNodeApiModule , NamingStrategy } from "../path-utils" ;
9+ import { isNodeApiModule } from "../path-utils" ;
1010
1111type 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 ;
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments