Disallow var

Summary: We're ES6 and `var`s scoping rules are weird. Let's block this.

Reviewed By: jknoxville

Differential Revision: D16131290

fbshipit-source-id: ba67d16bb8a185a4bb59a657a97b00230dbacafe
This commit is contained in:
Pascal Hartig
2019-07-09 04:15:32 -07:00
committed by Facebook Github Bot
parent af8fbf2b46
commit 662db20948
9 changed files with 12 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ import MacDevice from '../devices/MacDevice';
import WindowsDevice from '../devices/WindowsDevice';
export default (store: Store, logger: Logger) => {
var device;
let device;
if (process.platform === 'darwin') {
device = new MacDevice();
} else if (process.platform === 'win32') {