chore: fix warning indent

This commit is contained in:
Evan You 2018-11-03 05:59:29 +09:00
parent bf6e49559a
commit ccc835caff

View File

@ -31,7 +31,8 @@ export function warn(msg: string, ...args: any[]) {
console.groupCollapsed('at', ...formatTraceEntry(trace[0])) console.groupCollapsed('at', ...formatTraceEntry(trace[0]))
const logs: string[] = [] const logs: string[] = []
trace.slice(1).forEach((entry, i) => { trace.slice(1).forEach((entry, i) => {
logs.push('\n', ...formatTraceEntry(entry, i + 1)) if (i !== 0) logs.push('\n')
logs.push(...formatTraceEntry(entry, i + 1))
}) })
console.log(...logs) console.log(...logs)
console.groupEnd() console.groupEnd()