Skip to content

Commit 052ba5b

Browse files
committed
little lint
1 parent 5ec5d2a commit 052ba5b

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎lib/herro.js‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ function Herror(message, preset){
5050
Error.stackTraceLimit = errorPreset.limit;
5151
}
5252

53-
if( errorPreset.limit !== void 0 || errorPreset.limit !== 0){
53+
if( errorPreset.limit || errorPreset.limit !== 0 ){
5454

5555
Error.captureStackTrace(this, Herror);
5656
Error.prepareStackTrace = function(_, stack){
5757
return stack;
5858
};
5959
this.caller = this.stack;
60-
60+
6161
} else {
6262
error.stack = null;
6363
}
@@ -120,7 +120,7 @@ exports.set = function(name, handle){
120120
* @api public
121121
*/
122122

123-
function get(name, message){
123+
exports.get = function (name, message){
124124

125125
if(name === void 0 || typeof name !== 'string')
126126
return Herror;
@@ -144,8 +144,7 @@ function get(name, message){
144144
*/
145145
return ErrorCtor;
146146

147-
}
148-
exports.get = get;
147+
};
149148

150149
/**
151150
* `Config` constructor
@@ -163,7 +162,7 @@ function Config(initName, initHandle){
163162
var config = {};
164163

165164
/**
166-
* `Config#set`
165+
* `config#set`
167166
* @param {String} or {Object} name
168167
* @param {Function} handle
169168
* @return this
@@ -189,7 +188,7 @@ function Config(initName, initHandle){
189188
};
190189

191190
/**
192-
* `Config#get`
191+
* `config#get`
193192
* @param {String} or {Array} name
194193
* @return a copy of config(s)
195194
*

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "herro",
3-
"version": "0.1.37",
3+
"version": "0.1.38",
44
"description": "humanize the error class",
55
"author": "Javier Carrillo <stringparser@gmail.com> (http://www.stringparser.com)",
66
"main": "./index.js",

0 commit comments

Comments
 (0)