overviewControls: Remove superfluous max()

We don't need to call Math.max() to figure out the maximum of a
single value :-)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1709>
This commit is contained in:
Florian Müllner 2021-02-22 13:10:02 +01:00
parent ea5efbbd52
commit e0c0662164

View File

@ -66,7 +66,7 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
workspaceBox.set_origin(0, searchHeight + spacing);
workspaceBox.set_size(
width,
Math.round(Math.max(height * SMALL_WORKSPACE_RATIO)));
Math.round(height * SMALL_WORKSPACE_RATIO));
break;
}