Skip to content

Commit

Permalink
fix: remove config from mismatchThreshold (#1555) (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Feb 29, 2024
1 parent b208e55 commit 1342aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/util/engineTools.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 1342aec

Please sign in to comment.