mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Re-enable rule no-else-return (#10861)
This commit is contained in:
committed by
GitHub
parent
76275ec410
commit
2d8f4e3aaf
@@ -43,9 +43,11 @@ function colorFromBounds(value, bounds, colorBounds = ACCESSIBLE_COLOR_BOUNDS) {
|
||||
.domain([min, (max + min) / 2, max])
|
||||
.range([minColor, 'grey', maxColor]);
|
||||
return colorScale(value);
|
||||
} else if (min !== null) {
|
||||
}
|
||||
if (min !== null) {
|
||||
return value >= min ? maxColor : minColor;
|
||||
} else if (max !== null) {
|
||||
}
|
||||
if (max !== null) {
|
||||
return value < max ? maxColor : minColor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user