Skip to content

Commit

Permalink
fix: fix processors code types availabilty
Browse files Browse the repository at this point in the history
  • Loading branch information
shaveko committed Oct 11, 2023
1 parent 2cee433 commit de502d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scoring/processor/expressions/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ expressionProcessor.types = {
* @throws {TypeError} when a parameter isn't valid
*/
expressionProcessor.register = function register(name, type, processor) {
if (!this.types || !this.types.includes(type)) {
if (!this.types[type]) {
return errorHandler.throw('scoring', new TypeError(type + ' is not a valid expression type'));
}
if (_.isEmpty(name)) {
Expand Down

0 comments on commit de502d6

Please sign in to comment.