Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9171c76

Browse files
committed
style($log): reformat code for readability
1 parent 64fb1f2 commit 9171c76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/service/log.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ function $LogProvider(){
8282
function formatError(arg) {
8383
if (arg instanceof Error) {
8484
if (arg.stack) {
85-
arg = (arg.message && arg.stack.indexOf(arg.message) === -1) ?
86-
'Error: ' + arg.message + '\n' + arg.stack : arg.stack;
85+
arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
86+
? 'Error: ' + arg.message + '\n' + arg.stack
87+
: arg.stack;
8788
} else if (arg.sourceURL) {
8889
arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
8990
}

0 commit comments

Comments
 (0)