Remove var in RNTester (#22019)

Summary:
I removed `var` in RNTester.

- [x] npm run prettier
- [x] npm run flow-check-ios
- [x] npm run flow-check-android

[GENERAL] [ENHANCEMENT] [RNTester] - remove `var`
Pull Request resolved: https://github.com/facebook/react-native/pull/22019

Differential Revision: D12843071

Pulled By: TheSavior

fbshipit-source-id: 3652ea91b3ab92c367332cbe2ff7de0343508dad
This commit is contained in:
nd-02110114
2018-10-30 14:03:18 -07:00
committed by Facebook Github Bot
parent cdbf719307
commit a21b8b7360
10 changed files with 54 additions and 54 deletions

View File

@@ -39,7 +39,7 @@ class AppStateSubscription extends React.Component<
};
_handleAppStateChange = appState => {
var previousAppStates = this.state.previousAppStates.slice();
const previousAppStates = this.state.previousAppStates.slice();
previousAppStates.push(this.state.appState);
this.setState({
appState,