Skip to content

Commit 3525797

Browse files
committed
code cleanup and fix built-ins
1 parent 455da6a commit 3525797

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/dd-trace/test/plugins/versions/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ function capSubrange (name, subrange) {
4747
* @param {string} subrange
4848
*/
4949
function assertSupported (name, subrange) {
50+
if (supported[name] === null) return
51+
5052
if (!supported[name]) {
5153
throw new Error(
5254
`Supported version range for '${name}' needs to be defined in '${dir}/supported.json'.`

packages/dd-trace/test/plugins/versions/supported.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@
129129
"when": ">=3",
130130
"winston": ">=1",
131131
"workerpool": ">=6"
132-
}
132+
}

0 commit comments

Comments
 (0)