Skip to content

Commit 0cf04a0

Browse files
committed
Enable the noUselessElse rule
1 parent ec2c526 commit 0cf04a0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"style": {
1919
"noArguments": "off",
2020
"noParameterAssign": "off",
21-
"noUselessElse": "off",
2221
"useTemplate": "off"
2322
},
2423
"suspicious": {

debug_toolbar/static/debug_toolbar/js/timer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ function insertBrowserTiming() {
99
return (
1010
((performance.timing[stat] - timingOffset) / totalTime) * 100.0
1111
);
12-
} else {
13-
return 0;
1412
}
13+
return 0;
1514
}
1615
function getCSSWidth(stat, endStat) {
1716
let width = 0;

0 commit comments

Comments
 (0)