Skip to content

Commit

Permalink
Clear out jslint antiques
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrown committed Nov 18, 2015
1 parent 1e4ccfc commit 47b481f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion bin/osx-notifier.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
'use strict'; /*jslint es5: true, node: true, indent: 2 */
var optimist = require('optimist');
var notify = require('..');

Expand Down
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'; /*jslint es5: true, node: true, indent: 2 */
var fs = require('fs');
var path = require('path');
var child_process = require('child_process');

Expand All @@ -15,12 +13,9 @@ var cli_args = [
'execute',
];

function appBinPath(type) {
return path.join(__dirname, 'osx', 'terminal-notifier-' + type + '.app', 'Contents', 'MacOS', 'terminal-notifier');
}

module.exports = function(opts) {
var file = appBinPath(opts.type);
var app = 'terminal-notifier-' + opts.type + '.app';
var file = path.join(__dirname, 'osx', app, 'Contents', 'MacOS', 'terminal-notifier');
var args = [];
cli_args.forEach(function(arg) {
if (opts[arg]) args.push('-' + arg, opts[arg]);
Expand Down

0 comments on commit 47b481f

Please sign in to comment.