Skip to content

Commit bed01e2

Browse files
committedMar 26, 2019
remove the nomin comments, since we don't minify any more anyway
1 parent 9cb68f1 commit bed01e2

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed
 

Diff for: ‎semver.js

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
exports = module.exports = SemVer
22

3-
/* eslint-disable no-multi-spaces, indent */
4-
// The debug function is excluded entirely from the minified version.
5-
/* nomin */ var debug
6-
/* nomin */ /* istanbul ignore next */
7-
/* nomin */ if (typeof process === 'object' &&
8-
/* nomin */ process.env &&
9-
/* nomin */ process.env.NODE_DEBUG &&
10-
/* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
11-
/* nomin */ debug = function () {
12-
/* nomin */ var args = Array.prototype.slice.call(arguments, 0)
13-
/* nomin */ args.unshift('SEMVER')
14-
/* nomin */ console.log.apply(console, args)
15-
/* nomin */ }
16-
/* nomin */ } else {
17-
/* nomin */ debug = function () {}
18-
/* nomin */ }
19-
/* eslint-enable no-multi-spaces, indent */
3+
var debug
4+
/* istanbul ignore next */
5+
if (typeof process === 'object' &&
6+
process.env &&
7+
process.env.NODE_DEBUG &&
8+
/\bsemver\b/i.test(process.env.NODE_DEBUG)) {
9+
debug = function () {
10+
var args = Array.prototype.slice.call(arguments, 0)
11+
args.unshift('SEMVER')
12+
console.log.apply(console, args)
13+
}
14+
} else {
15+
debug = function () {}
16+
}
2017

2118
// Note: this is the semver.org version of the spec that it implements
2219
// Not necessarily the package version of this code.

0 commit comments

Comments
 (0)
Please sign in to comment.