Skip to content

Commit

Permalink
fix: validator coord bug with sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Nov 19, 2024
1 parent b1323de commit 36ee61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/shared/src/validators/coord.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class PointValidator implements ValidatorConstraintInterface {
if (Array.isArray(point.coordinates) && point.coordinates.length === 2) {
if (
typeof point.coordinates[0] !== 'number' ||
typeof point.coordinates[0] !== 'number'
typeof point.coordinates[1] !== 'number'
) {
return false;
}
Expand Down

0 comments on commit 36ee61e

Please sign in to comment.