Skip to content

Commit

Permalink
codereview comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aherlihy committed Dec 21, 2016
1 parent 2fd68ab commit 311bdf0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var ipc = require('hadron-ipc');
var intercom = require('./intercom');
var features = require('./features');
var Notifier = require('node-notifier');
var process = require('process');

var debug = require('debug')('mongodb-compass:metrics');

Expand Down Expand Up @@ -98,10 +97,8 @@ module.exports = function() {
debug('error encountered, notify trackers', err);
// Notify user that error occurred
if (!_.includes(err.message, 'MongoError')) {
var icon = pkg.config.hadron.build.win32.icon;
if (process.platform === 'darwin') {
icon = pkg.config.hadron.build.darwin.icon;
}
const icon = (process.platform === 'darwin') ?
pkg.config.hadron.build.darwin.icon : pkg.config.hadron.build.win32.icon;
Notifier.notify({
'icon': icon,
'message': 'Unexpected error occurred: ' + err.message,
Expand Down

0 comments on commit 311bdf0

Please sign in to comment.