Skip to content

Commit

Permalink
chore(type): remove unnecessary type assertion (#4150)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored Jul 20, 2021
1 parent 3ff94fa commit 457c9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compiler-sfc/src/compileStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function doCompileStyle(
return result
.then(result => ({
code: result.css || '',
map: result.map && (result.map.toJSON() as any),
map: result.map && result.map.toJSON(),
errors,
modules: cssModules,
rawResult: result,
Expand All @@ -211,7 +211,7 @@ export function doCompileStyle(

return {
code: code || ``,
map: outMap && (outMap.toJSON() as any),
map: outMap && outMap.toJSON(),
errors,
rawResult: result,
dependencies
Expand Down

0 comments on commit 457c9ae

Please sign in to comment.