aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reduceRangeDuplicates.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reduceRangeDuplicates.js b/bin/reduceRangeDuplicates.js
index b719124..6322e94 100755
--- a/bin/reduceRangeDuplicates.js
+++ b/bin/reduceRangeDuplicates.js
@@ -243,8 +243,10 @@ const reduceNonRange = new Transform({
} else {
// since the non-range feature has a unit that the range doesn't have, don't drop it
dropFeature = false
- debugStreams['addrInRangeDifferentUnits'].write(feature)
- debugStreams['addrInRangeDifferentUnits'].write(range)
+ if (argv.debug) {
+ debugStreams['addrInRangeDifferentUnits'].write(feature)
+ debugStreams['addrInRangeDifferentUnits'].write(range)
+ }
}
} else {
// no addr:unit on the feature to safe to drop