fix eslint "no-implicit-coercion" warning

See https://eslint.org/docs/rules/no-implicit-coercion for this warning. However the implicit type conversion is unnecessary here, since `Number.toFixed` already returns a string, see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
This commit is contained in:
Martin Raifer
2021-11-16 11:20:01 +01:00
committed by GitHub
parent f8210a9a86
commit 4f51ededfd

View File

@@ -396,7 +396,7 @@ export function validationCrossingWays(context) {
}
// Differentiate based on the loc rounded to 4 digits, since two ways can cross multiple times.
var uniqueID = '' + crossing.crossPoint[0].toFixed(4) + ',' + crossing.crossPoint[1].toFixed(4);
var uniqueID = crossing.crossPoint[0].toFixed(4) + ',' + crossing.crossPoint[1].toFixed(4);
return new validationIssue({
type: type,