Skip to content

Commit

Permalink
fix XO lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 16, 2016
1 parent bc3ba72 commit 58ed26e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion check.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint xo/no-process-exit: "off" */
/* eslint-disable xo/no-process-exit */
'use strict';
var updateNotifier = require('./');

var options = JSON.parse(process.argv[2]);

updateNotifier = new updateNotifier.UpdateNotifier(options);
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var latestVersion = require('latest-version');
var isNpm = require('is-npm');
var boxen = require('boxen');
var xdgBasedir = require('xdg-basedir');

var ONE_DAY = 1000 * 60 * 60 * 24;

function UpdateNotifier(options) {
Expand Down Expand Up @@ -40,7 +41,7 @@ function UpdateNotifier(options) {
// after the set interval, so not to bother users right away
lastUpdateCheck: Date.now()
});
} catch (_) {
} catch (err) {
// expecting error code EACCES or EPERM
var msg =
chalk.yellow(format(' %s update check failed ', options.pkg.name)) +
Expand Down

0 comments on commit 58ed26e

Please sign in to comment.