Remove double tilde (~~)

This commit is contained in:
David Knezić 2014-10-13 20:08:46 +02:00
parent 0655b5223e
commit 95e3bff923

View file

@ -36,7 +36,7 @@ function plugin(opts){
debug('checking file: %s', file);
var data = files[file];
match(file, data).forEach(function(key){
if (key && ~~keys.indexOf(key)){
if (key && keys.indexOf(key) < 0){
opts[key] = {};
keys.push(key);
}
@ -165,7 +165,7 @@ function matcher(cols){
collection.forEach(function(key){
matches.push(key);
if (key && ~~keys.indexOf(key))
if (key && keys.indexOf(key) < 0)
debug('adding new collection through metadata: %s', key);
});
}