diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-03-04 02:45:52 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-03-04 02:45:52 +0300 |
commit | 7691d8229b45f79e06ea65bd4618d57ca9abea7b (patch) | |
tree | 63222421afad170b69d07be7c6ba9df21786fd5f /lib | |
parent | 4ef1412d0061239da2b1c4460ed6db37cc9ded27 (diff) |
config: remove redundant validator
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/defaults.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/config/defaults.js b/lib/config/defaults.js index 3c37f4405..e5744772e 100644 --- a/lib/config/defaults.js +++ b/lib/config/defaults.js @@ -32,12 +32,6 @@ function validateSemver (data, k, val) { data[k] = semver.valid(val) } -function validateTag (data, k, val) { - val = ("" + val).trim() - if (!val || semver.validRange(val)) return false - data[k] = val -} - function validateStream (data, k, val) { if (!(val instanceof Stream)) return false data[k] = val |