mirror of
https://github.com/vale981/metalsmith-collections
synced 2025-03-04 17:01:41 -05:00
Remove double tilde (~~)
This commit is contained in:
parent
0655b5223e
commit
95e3bff923
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue