Skip to content

Commit

Permalink
Merge pull request #1 from nubs/master
Browse files Browse the repository at this point in the history
Don't add unnecessary function.
  • Loading branch information
nubs committed Aug 31, 2015
2 parents 5d0bcc2 + 17e50c4 commit a240f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules/
.nyc_output/
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ function clean(msg) {
if (key === 'password') {
msg[key] = '****'
} else if (Array.isArray(msg[key])) {
msg[key] = msg[key].map(function(item) {
return clean(item)
});
msg[key] = msg[key].map(clean);
} else if (typeof msg[key] === 'object') {
msg[key] = clean(msg[key])
}
Expand Down

0 comments on commit a240f8e

Please sign in to comment.