Skip to content

Commit 0b34534

Browse files
committed
Fix linting errors
1 parent 758d737 commit 0b34534

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

packages/error-reporting/src/error-router.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,15 @@ var isFunction = is.function;
3535
function 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

0 commit comments

Comments
 (0)