From 281255fc872d2b999ba512450eb86cfdb5fb4ddc Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Wed, 28 Feb 2024 18:12:35 -0500 Subject: [PATCH] fix: remove `config` from `mismatchThreshold` (#1555) --- core/util/engineTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util/engineTools.js b/core/util/engineTools.js index 47c2e7305..09ab43a2a 100644 --- a/core/util/engineTools.js +++ b/core/util/engineTools.js @@ -1,12 +1,12 @@ /** * @description Retrieves the mismatch threshold based on the given scenario and configuration. * - * @param {Object} scenario - The scenario object, which may contain a misMatchThresholdconfig property. + * @param {Object} scenario - The scenario object, which may contain a misMatchThreshold property. * @param {Object} config - The configuration object, which includes misMatchThreshold and defaultMisMatchThreshold properties. * @returns {number} The mismatch threshold value. */ function getMisMatchThreshHold (scenario, config) { - return scenario?.misMatchThresholdconfig || config?.misMatchThreshold || config?.defaultMisMatchThreshold || 0.1; + return scenario?.misMatchThreshold || config?.misMatchThreshold || config?.defaultMisMatchThreshold || 0.1; } function ensureFileSuffix (filename, suffix) {