mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user