Skip to content

Commit

Permalink
simplified the code
Browse files Browse the repository at this point in the history
Co-authored-by: akloeckner <[email protected]>
  • Loading branch information
FAB1150 and akloeckner authored Sep 11, 2024
1 parent dfb0a97 commit f457377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ class MiniGraphCard extends LitElement {
// Doesn't matter if minBoundRange is NaN because this will be false if so
if (diff > 0) {
const weights = [
min !== undefined && min[0] !== '~' ? 0 : (max === undefined ? 0 : 1),
min !== undefined && min[0] !== '~' || max === undefined ? 0 : 1,
max !== undefined && max[0] !== '~' ? 0 : (min === undefined ? 0 : 1),
];
const sum = weights[0] + weights[1];
Expand Down

0 comments on commit f457377

Please sign in to comment.