Skip to content

Commit 38facc1

Browse files
committed
fix lint
1 parent 17c393f commit 38facc1

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

packages/react-devtools-shared/src/Logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type LogEvent =
4141
| {|
4242
+event_name: 'inspect-native-element',
4343
|}
44-
| {|
44+
| {|
4545
+event_name: 'profiling-start',
4646
|};
4747

packages/react-devtools-shared/src/devtools/views/Profiler/ProfilerContext.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,10 @@ function ProfilerContextController({children}: Props) {
192192
});
193193
}
194194

195-
const startProfiling = useCallback(
196-
() => {
197-
logEvent({event_name: 'profiling-start'});
198-
store.profilerStore.startProfiling();
199-
},
200-
[store],
201-
);
195+
const startProfiling = useCallback(() => {
196+
logEvent({event_name: 'profiling-start'});
197+
store.profilerStore.startProfiling();
198+
}, [store]);
202199
const stopProfiling = useCallback(() => store.profilerStore.stopProfiling(), [
203200
store,
204201
]);

0 commit comments

Comments
 (0)