mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove redundant {||} syntax (#48686)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48686 Changelog: [Internal] - Removed redundant `{||}` syntax Reviewed By: javache Differential Revision: D68205038 fbshipit-source-id: f7d3271142b6443a5859c3b668b7aebd3ce3ef3f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e8a64fd638
commit
f36bfe5dfa
@@ -22,7 +22,7 @@ import {
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
||||
type State = {|
|
||||
type State = {
|
||||
testResults: {
|
||||
[string]: {
|
||||
type: string,
|
||||
@@ -31,7 +31,7 @@ type State = {|
|
||||
},
|
||||
...
|
||||
},
|
||||
|};
|
||||
};
|
||||
|
||||
let triedLoadingModuleOnce = false;
|
||||
let module = null;
|
||||
@@ -67,7 +67,7 @@ function stringify(obj: mixed): string {
|
||||
return (JSON.stringify(obj, replacer) || '').replace(/"/g, "'");
|
||||
}
|
||||
|
||||
class SampleLegacyModuleExample extends React.Component<{||}, State> {
|
||||
class SampleLegacyModuleExample extends React.Component<{}, State> {
|
||||
static contextType: React$Context<RootTag> = RootTagContext;
|
||||
|
||||
state: State = {
|
||||
|
||||
Reference in New Issue
Block a user