Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed Mar 29, 2022
1 parent 63dd76e commit 4a1f36b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react-debug-tools/src/ReactDebugHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ function handleRenderFunctionError(error: any): void {
const messgae: string =
isError && error.message
? error.message
: 'Error rendering inspected component'
: 'Error rendering inspected component';
// $FlowFixMe: Flow doesn't know about 2nd argument of Error constructor
const wrapperError = new Error(messgae, {cause: error});
// Note: This error name needs to stay in sync with react-devtools-shared
Expand Down
4 changes: 1 addition & 3 deletions packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ import {
TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS,
TREE_OPERATION_UPDATE_TREE_BASE_DURATION,
} from '../constants';
import {
inspectHooksOfFiber,
} from 'react-debug-tools';
import {inspectHooksOfFiber} from 'react-debug-tools';
import {
patch as patchConsole,
registerRenderer as registerRendererWithConsole,
Expand Down

0 comments on commit 4a1f36b

Please sign in to comment.