From 214ae2062ce28af77b665f34c7895e445b9b73fa Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Mon, 18 May 2015 10:25:17 -0700 Subject: [PATCH] Fix react-native-cli code formatting --- react-native-cli/index.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 7179a3197..871a78b98 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -78,24 +78,24 @@ function init(name) { } function createAfterConfirmation(name) { - prompt.start(); + prompt.start(); - var property = { - name: 'yesno', - message: 'Directory ' + name + ' already exist. Continue?', - validator: /y[es]*|n[o]?/, - warning: 'Must respond yes or no', - default: 'no' - }; + var property = { + name: 'yesno', + message: 'Directory ' + name + ' already exist. Continue?', + validator: /y[es]*|n[o]?/, + warning: 'Must respond yes or no', + default: 'no' + }; - prompt.get(property, function (err, result) { - if (result.yesno[0] === 'y') { - createProject(name); - } else { - console.log('Project initialization canceled'); - process.exit(); - } - }); + prompt.get(property, function (err, result) { + if (result.yesno[0] === 'y') { + createProject(name); + } else { + console.log('Project initialization canceled'); + process.exit(); + } + }); } function createProject(name) {