Remove useless else

This commit is contained in:
Jonas Kvinge
2024-06-12 17:38:58 +02:00
parent 93df859aa4
commit b233600b8c
32 changed files with 178 additions and 211 deletions

View File

@@ -285,7 +285,7 @@ QColor ensureContrast(const QColor &bg, const QColor &fg, int amount) {
if (ds > amount / 2 && (bs > 125 && fs > 125)) {
return fg;
}
else if (dv > amount / 2 && (bv > 125 && fv > 125)) {
if (dv > amount / 2 && (bv > 125 && fv > 125)) {
return fg;
}
}