Skip to content

Commit

Permalink
Merge pull request #1919 from DrKiraDmitry/main
Browse files Browse the repository at this point in the history
Replaced the redundant map function and removed the unused variable
  • Loading branch information
ai committed Feb 1, 2024
2 parents 219dd75 + 298ac6e commit 1a906e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/map-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MapGenerator {
if (this.mapOpts.sourcesContent === false) {
map = new SourceMapConsumer(prev.text)
if (map.sourcesContent) {
map.sourcesContent = map.sourcesContent.map(() => null)
map.sourcesContent = null
}
} else {
map = prev.consumer()
Expand Down
1 change: 0 additions & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Parser {
this.current = this.root
this.spaces = ''
this.semicolon = false
this.customProperty = false

this.createTokenizer()
this.root.source = { input, start: { column: 1, line: 1, offset: 0 } }
Expand Down

0 comments on commit 1a906e5

Please sign in to comment.