Skip to content

Commit fc209ef

Browse files
committed
refactor(unassertify): renaming to a better name
1 parent a14cf02 commit fc209ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function applyUnassertWithoutSourceMap (code, filepath, options) {
6767
return escodegen.generate(unassert(ast));
6868
}
6969

70-
function isDebugMode (options) {
70+
function shouldProduceSourceMap (options) {
7171
return (options && options._flags && options._flags.debug);
7272
}
7373

@@ -80,7 +80,7 @@ module.exports = function unassertify (filepath, options) {
8080
}
8181

8282
function end() {
83-
if (isDebugMode(options)) {
83+
if (shouldProduceSourceMap(options)) {
8484
stream.queue(applyUnassertWithSourceMap(data, filepath, options));
8585
} else {
8686
stream.queue(applyUnassertWithoutSourceMap(data, filepath, options));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy