Skip to content

Commit

Permalink
Remove unnecessary dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 3, 2017
1 parent 90323b0 commit 2e22e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/Acho.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

DEFAULT = require './Default'
CONST = require './Constants'
defaults = require 'lodash.defaults'

Acho = (params = {}) ->
return new Acho params unless this instanceof Acho

acho = defaults({}, params, DEFAULT)
acho = Object.assign({}, DEFAULT, params)
acho.diff = [] if acho.diff
acho[key] = value for key, value of acho

Expand All @@ -34,8 +33,7 @@ Acho = (params = {}) ->
Acho.skin = (skinFn) ->
skin = skinFn(CONST)
(params = {}) ->
defaults(params, skin)
Acho(params)
Acho(Object.assign({}, params, skin))

Acho.defaults = DEFAULT

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
],
"dependencies": {
"chalk": "~1.1.1",
"coffee-script": "~1.12.0",
"lodash.defaults": "~4.2.0",
"coffee-script": "~1.11.0",
"pretty-ms": "~2.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 2e22e0f

Please sign in to comment.