fix(swipe): Ignore err, since stdout = '' is an expected case

This commit is contained in:
Ben Gotow 2016-02-25 10:38:51 -08:00
parent 2a757f332e
commit 1f85b1b444

View file

@ -35,9 +35,6 @@ let SwipeInverted = false;
if (process.platform === 'darwin') {
exec("defaults read -g com.apple.swipescrolldirection", (err, stdout)=> {
if (err !== null) {
return;
}
SwipeInverted = (stdout.toString().trim() !== '0');
});
} else if (process.platform === 'win32') {