Skip to content

Commit

Permalink
fixing codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Predrag Stojadinovic committed Dec 27, 2018
1 parent 5c0149b commit 357c7d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/gitterjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const isGit = (path) => {
goto(path);
git = execSync("git rev-parse --is-inside-work-tree", {encoding: "utf8"});
} catch (e) {
console.error(e);
}
return !!git;
};
Expand Down Expand Up @@ -48,11 +49,12 @@ const execute = (command) => {
try {
console.log(execSync(command, {encoding: "utf8"}).trim());
} catch (e) {
console.error(e);
}
};

module.exports = {
run: function (commander) {
run(commander) {
options = commander;

let gits = _.uniq(find(process.cwd()));
Expand All @@ -62,10 +64,8 @@ module.exports = {
"git fetch --prune"
];

if (options.pull) {
commands.push("git pull");

} else {
if (options.pull) commands.push("git pull");
else {
let message = options.message || "gitterjs autocommit " + moment().format("YYYY-MM-DD HH:mm:ss");

commands.push("git add .");
Expand Down

0 comments on commit 357c7d1

Please sign in to comment.