From e0c0662164995c21217860a2cff802a3b90891b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 22 Feb 2021 13:10:02 +0100 Subject: [PATCH] overviewControls: Remove superfluous max() We don't need to call Math.max() to figure out the maximum of a single value :-) Part-of: --- js/ui/overviewControls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 673a596fb..7de141e0c 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -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; }