Skip to content

Commit 64660cf

Browse files
committed
style(log): reformat code for readability
1 parent e9d6093 commit 64660cf

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)