From 1f85b1b4445008b45314a484bdcb1a56fbbc830a Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 25 Feb 2016 10:38:51 -0800 Subject: [PATCH] fix(swipe): Ignore err, since stdout = '' is an expected case --- src/components/swipe-container.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/swipe-container.jsx b/src/components/swipe-container.jsx index 1facc5fe4..66917b92c 100644 --- a/src/components/swipe-container.jsx +++ b/src/components/swipe-container.jsx @@ -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') {