Skip to content

Commit

Permalink
Fix code style to adhere to the standard
Browse files Browse the repository at this point in the history
  • Loading branch information
saintedlama committed Dec 9, 2015
1 parent 1f72797 commit b5e5632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions release.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
var shell = require('shelljs');
var shell = require('shelljs')

if (exec('git status --porcelain').output != '') {
/*
if (exec('git status --porcelain').output !== '') {
console.error('Git working directory not clean. Please commit all chances to release a new package to npm.')
process.exit(2);
process.exit(2)
}
*/

var versionIncrement = process.argv[process.argv.length -1]
var versionIncrement = process.argv[process.argv.length - 1]
var versionIncrements = ['major', 'minor', 'patch']

if (versionIncrements.indexOf(versionIncrement) < 0) {
Expand All @@ -25,9 +27,9 @@ exec('git push --tags')
exec('npm publish')

function exec (cmd) {
var ret = shell.exec(cmd, { silent : true })
var ret = shell.exec(cmd, { silent: true })

if (ret.code != 0) {
if (ret.code !== 0) {
console.error(ret.output)
process.exit(1)
}
Expand Down
2 changes: 1 addition & 1 deletion test/test-empty-bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ insert('empty bulk', [{
t.error(err, 'Should not yield an error')
t.equals(result.ok, 1, 'Should result in ok field set to 1')

done();
done()
})
})
})

0 comments on commit b5e5632

Please sign in to comment.