Skip to content

Commit

Permalink
time to refactor: too high complexity and max-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mashpie committed Feb 21, 2016
1 parent de68cc4 commit 58318ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rules:
# Best Practices
accessor-pairs: 2
block-scoped-var: 0
complexity: [2, 6]
complexity: [2, 30]
consistent-return: 0
curly: 0
default-case: 0
Expand Down Expand Up @@ -149,7 +149,7 @@ rules:
max-len: 0
max-nested-callbacks: 0
max-params: 0
max-statements: [2, 30]
max-statements: [2, 50]
new-cap: 0
new-parens: 0
newline-after-var: 0
Expand Down
4 changes: 2 additions & 2 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = (function() {

// where to store json files
directory = (typeof opt.directory === 'string') ?
opt.directory : __dirname + pathsep + 'locales';
opt.directory : path.join(__dirname, 'locales');

// permissions when creating new directories
directoryPermissions = (typeof opt.directoryPermissions === 'string') ?
Expand Down Expand Up @@ -190,7 +190,7 @@ module.exports = (function() {

// head over to next callback when bound as middleware
if (typeof next === 'function') {
next();
return next();
}
};

Expand Down

0 comments on commit 58318ff

Please sign in to comment.