Skip to content

Commit

Permalink
update according to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
onnlucky committed Jul 19, 2024
1 parent 6a65962 commit ce69831
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/panels/lovelace/common/graph/coordinates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const calcPoints = (
}
let last = [average(first), lastValue(first)];

const getY = (value: number): number => {
return height + strokeWidth / 2 - (value - min) / yRatio;
};
const getY = (value: number): number => height + strokeWidth / 2 - (value - min) / yRatio;

const getCoords = (item: any[], i: number, offset = 0, depth = 1) => {
if (depth > 1 && item) {
Expand Down

0 comments on commit ce69831

Please sign in to comment.