Skip to content

Commit

Permalink
Update packages/react-native-cli/src/lib/Insert.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Wilson <[email protected]>
  • Loading branch information
joshedney and gingerbenw authored Feb 27, 2024
1 parent d392708 commit fb30861
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/react-native-cli/src/lib/Insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,7 @@ export async function insertAndroid (projectRoot: string, logger: Logger): Promi
cwd: javaDir
}))[0]

let relativeMainApplicationPath
if (relativeMainApplicationPathJava) {
relativeMainApplicationPath = relativeMainApplicationPathJava
} else if (relativeMainApplicationPathKotlin) {
relativeMainApplicationPath = relativeMainApplicationPathKotlin
} else if (relativeMainApplicationPathOther) {
relativeMainApplicationPath = relativeMainApplicationPathOther
}
const relativeMainApplicationPath = relativeMainApplicationPathJava || relativeMainApplicationPathKotlin || relativeMainApplicationPathOther

if (!relativeMainApplicationPath) {
return logger.warn(FAIL_MSG('MainApplication.java, MainApplication.kt or MainApplication'))
Expand Down

0 comments on commit fb30861

Please sign in to comment.