File tree Expand file tree Collapse file tree
packages/error-reporting/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,20 +35,15 @@ var isFunction = is.function;
3535function errorHandlerRouter ( ob , em ) {
3636 if ( ob === null || ob === undefined ) {
3737 populateFromUnknown ( ob , em ) ;
38- }
39- else if ( ob instanceof Error ) {
38+ } else if ( ob instanceof Error ) {
4039 populateFromError ( ob , em ) ;
41- }
42- else if ( typeof ob === 'object' && isObject ( ob ) ) {
40+ } else if ( typeof ob === 'object' && isObject ( ob ) ) {
4341 populateFromObject ( ob , em ) ;
44- }
45- else if ( typeof ob === 'string' && isString ( ob ) ) {
42+ } else if ( typeof ob === 'string' && isString ( ob ) ) {
4643 populateFromString ( ob , em ) ;
47- }
48- else if ( typeof ob === 'number' ) {
44+ } else if ( typeof ob === 'number' ) {
4945 populateFromNumber ( ob , em ) ;
50- }
51- else {
46+ } else {
5247 populateFromUnknown ( ob , em ) ;
5348 }
5449
You can’t perform that action at this time.
0 commit comments