Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCartier committed Aug 24, 2016
1 parent 8721e02 commit f2d8dbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"node": true
"node": true,
"undef": true,
"esnext": true
}
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Either use a [EditorConfig](http://editorconfig.org/) plugin for your IDE
- Use 4 spaces for indentation
- Do not leave spaces on empty lines, or spaces at the end of lines
- Ensure your files end with a new line

## Pull Request

- Please do not include version changes in your PR
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ display.header = function (str) {
var getProjectName = function () {
var deferred = Q.defer();
var parser = new xml2js.Parser();
data = fs.readFile(settings.CONFIG_FILE, function (err, data) {
fs.readFile(settings.CONFIG_FILE, function (err, data) {
if (err) {
deferred.reject(err);
}
Expand Down Expand Up @@ -276,10 +276,10 @@ var atLeastOnePlatformFound = function () {
display.success('platforms found: ' + _(activePlatforms).pluck('name').join(', '));
deferred.resolve();
} else {
display.error('No cordova platforms found.' +
'Make sure you are in the root folder of your Cordova project' +
'and add platforms with \'cordova platform add\'');
deferred.reject();
display.error('No cordova platforms found. ' +
'Make sure you are in the root folder of your Cordova project ' +
'and add platforms with \'cordova platform add\'');
deferred.reject();
}
});
return deferred.promise;
Expand Down

0 comments on commit f2d8dbf

Please sign in to comment.