We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99eb222 + d00dd08 commit 78b01dbCopy full SHA for 78b01db
lib/MetaCPAN/ES.pm
@@ -29,7 +29,7 @@ sub new ( $class, %args ) {
29
nodes => [$config_node],
30
),
31
index => $index,
32
- ( $args{type} ? ( type => $args{type} ) : () ),
+ type => ( $args{type} ? $args{type} : $index ),
33
}, $class;
34
}
35
0 commit comments