Skip to content

Commit

Permalink
Merge pull request #221 from sindresorhus/moot-require
Browse files Browse the repository at this point in the history
remove moot require
  • Loading branch information
es128 committed Jan 24, 2015
2 parents a0dd61d + 2706618 commit 8e214ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ var NodeFsHandler = require('./nodefs-handler');
var FsEventsHandler = require('./fsevents-handler');
exports.isBinaryPath = require('./is-binary');

var platform = require('os').platform();

// Public: Main class.
// Watches files & directories for changes.
//
Expand Down Expand Up @@ -64,7 +62,7 @@ function FSWatcher(_opts) {
// Use polling on Mac if not using fsevents.
// Other platforms use non-polling fs.watch.
if (undef('usePolling') && !opts.useFsEvents) {
opts.usePolling = platform === 'darwin';
opts.usePolling = process.platform === 'darwin';
}

// Editor atomic write normalization enabled by default with fs.watch
Expand Down

0 comments on commit 8e214ba

Please sign in to comment.