Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferjoseph authored Apr 17, 2017
1 parent d7881d8 commit b85f4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function hashswitch (actions, defaultCallback){
actions && Object.keys(actions).forEach(function (action) {
('string' === typeof action && 'function' === typeof actions[action]) ?
(hash[action] = actions[action]) :
console.log(action + ' should be a string and ' + actions[action] + ' should be a function.')
console.error(action + ' should be a string and ' + actions[action] + ' should be a function.')
})
return function exectue (action) {
'string' !== typeof action && console.error(action + ' should be a string')
Expand Down

0 comments on commit b85f4d6

Please sign in to comment.