[Pkg-javascript-commits] [node-entities] 07/63: removed unnecessary if statement
Wolfgang Borgert
debacle at moszumanska.debian.org
Mon Sep 22 08:15:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository node-entities.
commit 6e6242f2e0874d9c14c1d204aa36ea3b1e80ee29
Author: Felix Böhm <me at feedic.com>
Date: Fri Aug 24 15:05:08 2012 +0300
removed unnecessary if statement
---
index.js | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/index.js b/index.js
index 0ca411d..e1bad38 100644
--- a/index.js
+++ b/index.js
@@ -61,14 +61,12 @@ modes.forEach(function(name){
tmp = obj.obj;
- if(!module.exports["decode" +name]){
- module.exports["decode" +name] = function(data){
- return data
- .replace(regex, func)
- .replace(re_hex, hex_func)
- .replace(re_charCode, num_func);
- };
- }
+ module.exports["decode" +name] = function(data){
+ return data
+ .replace(regex, func)
+ .replace(re_hex, hex_func)
+ .replace(re_charCode, num_func);
+ };
var reverse = getReverse(obj.obj),
reverse_re = reverse.re,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-entities.git
More information about the Pkg-javascript-commits
mailing list