Skip to content

Commit 563e694

Browse files
committed
Change method name for clarity
1 parent 1609cef commit 563e694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create-react-native-app/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (commands.length === 0) {
4242

4343
createApp(commands[0], !!argv.verbose, argv['scripts-version']).then(() => {});
4444

45-
function isRespondYarn() {
45+
function userHasYarn() {
4646
try {
4747
const result = spawn.sync('yarnpkg', ['--version'], { stdio: 'ignore' });
4848
if (result.error || result.status !== 0) {
@@ -68,7 +68,7 @@ function packageManagerType() {
6868
return t ? t : defaultType;
6969
}
7070

71-
return isRespondYarn() ? 'yarn' : defaultType;
71+
return userHasYarn() ? 'yarn' : defaultType;
7272
}
7373

7474
function packageManagerCmd() {

0 commit comments

Comments
 (0)