Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Feb 9, 2024
1 parent e9fc987 commit 60c694f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions web/client/components/maps/forms/Thumbnail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import Message from '../../../components/I18N/Message';
import { getResourceIdFromURL } from '../../../utils/ResourceUtils';
import { randomInt } from '../../../utils/cesium/MathUtils';
import Thumbnail from '../../misc/Thumbnail';

const errorMessages = {
Expand Down
8 changes: 4 additions & 4 deletions web/client/utils/cesium/MathUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function computeSlopes(coordinates, cameraPosition) {
*/
export const randomFloat = function () {

Check failure on line 92 in web/client/utils/cesium/MathUtils.js

View workflow job for this annotation

GitHub Actions / test-front-end

Unexpected space before function parentheses
const int = window.crypto.getRandomValues(new Uint32Array(1))[0];
return int / 2**32;
return int / 2 ** 32;
}

Check failure on line 95 in web/client/utils/cesium/MathUtils.js

View workflow job for this annotation

GitHub Actions / test-front-end

Missing semicolon

/**
Expand All @@ -100,6 +100,6 @@ export const randomFloat = function () {
* @todo check that min is <= max.
*/
export const randomInt = function (max, min = 0) {

Check failure on line 102 in web/client/utils/cesium/MathUtils.js

View workflow job for this annotation

GitHub Actions / test-front-end

Unexpected space before function parentheses
const range = max - min
return Math.floor(randomFloat() * range + min)
}
const range = max - min;
return Math.floor(randomFloat() * range + min);
};

0 comments on commit 60c694f

Please sign in to comment.