Skip to content

Commit 923fd58

Browse files
mikesherovzkat
authored andcommittedMay 27, 2017
utils: Remove slow assertion from module-name util (#16749)
PR-URL: npm/npm#16749 Credit: @mikesherov Reviewed-By: @zkat Reviewed-By: @iarna
1 parent ebafe48 commit 923fd58

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎lib/utils/module-name.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22
var path = require('path')
3-
var validate = require('aproba')
43

54
module.exports = moduleName
65
module.exports.test = {}
@@ -22,7 +21,6 @@ function isNotEmpty (str) {
2221

2322
var unknown = 0
2423
function moduleName (tree) {
25-
validate('O', arguments)
2624
var pkg = tree.package || tree
2725
if (isNotEmpty(pkg.name)) return pkg.name
2826
var pkgName = pathToPackageName(tree.path)

0 commit comments

Comments
 (0)
Please sign in to comment.