Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Fix code style errors, again
Browse files Browse the repository at this point in the history
  • Loading branch information
edsfocci committed Jan 12, 2017
1 parent db567c4 commit a4df2f8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/setup/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ var shellInitScriptChooser = function() {

var promise = Promise.all([bashrcPromise, bashProfilePromise])
.then(function() {
if ((bashrcExists || bashProfileExists) &&
!(bashrcExists && bashProfileExists)) { // ^ == bitwise XOR
return (bashrcExists && bashrcFile) ||
(bashProfileExists && bashProfileFile);
if ((bashrcExists || bashProfileExists) &&
!(bashrcExists && bashProfileExists)) { // ^ == bitwise XOR
return (bashrcExists && bashrcFile) ||
(bashProfileExists && bashProfileFile);
}

if (bashrcExists && bashProfileExists) {
Expand All @@ -118,7 +118,8 @@ var shellInitScriptChooser = function() {

if (bashrcRe.test(data)) {
resolve(bashrcFile);
} else {
}
else {
resolve();
}
});
Expand All @@ -138,7 +139,8 @@ var shellInitScriptChooser = function() {

if (bashProfileRe.test(data)) {
resolve(bashProfileFile);
} else {
}
else {
resolve();
}
});
Expand All @@ -154,7 +156,7 @@ var shellInitScriptChooser = function() {
// Neither .bashrc nor .bash_profile sources the other
var platformsToInitScript = {
linux: bashrcFile,
darwin: bashProfileFile
darwin: bashProfileFile,
};

return platformsToInitScript[process.platform];
Expand Down

0 comments on commit a4df2f8

Please sign in to comment.