diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-15 20:13:56 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-15 20:13:56 +1000 |
commit | ff6b7a47500cb31b924034e4d8c1dca08a033700 (patch) | |
tree | 3b8ec458184ac3772ab2c3c467349070894cc9ff /bin | |
parent | 566b7ace89a00d64aa9b94d4659d01f79bd31fe9 (diff) |
fix reduceRangeDuplicates to only output debug stream with --debug
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reduceRangeDuplicates.js | 6 |
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 |