Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit b0436cd

Browse files
Dimitar TachevDimitarTachev
Dimitar Tachev
authored andcommitted
chore: fix PR comments
1 parent 89f2df3 commit b0436cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

androidProjectHelpers.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ const getMksnapshotParams = (projectDir) => {
5050
const getRuntimeNdkRevision = (projectDir) => {
5151
try {
5252
const androidSettingsJSON = getAndroidSettingsJson(projectDir);
53-
if (androidSettingsJSON !== null) {
54-
return androidSettingsJSON.ndkRevision;
55-
} else {
56-
return null;
57-
}
53+
const result = androidSettingsJSON && androidSettingsJSON.ndkRevision;
54+
return result;
5855
} catch (e) {
5956
return null;
6057
}
@@ -77,4 +74,4 @@ module.exports = {
7774
getAndroidV8Version,
7875
getMksnapshotParams,
7976
getRuntimeNdkRevision
80-
};
77+
};

0 commit comments

Comments
 (0)