Skip to content

Commit

Permalink
chore(utils): remove redundant local variables (#13377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hashen110 committed May 8, 2022
1 parent feba391 commit e768d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions utils/ssr-helpers/create-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ module.exports = function createRenderer (opts) {
async function runApp(ssrContext) {
try {
const entry = await evaluateEntry()
const app = await entry(ssrContext)
return app
return await entry(ssrContext)
}
catch (err) {
await rewriteErrorTrace(err)
Expand Down
4 changes: 1 addition & 3 deletions utils/ssr-helpers/lib/create-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ function getRewriteErrorTrace (rawMaps) {

const { source, line, column } = originalPosition
const mappedPosition = `(${source.replace(webpackRE, '')}:${line}:${column})`
const trace = _trace.replace(filenameRE, mappedPosition)

return trace
return _trace.replace(filenameRE, mappedPosition)
}

return async function (err) {
Expand Down

0 comments on commit e768d32

Please sign in to comment.