[gnome-shell] overviewControls: Remove superfluous max()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Remove superfluous max()
- Date: Mon, 22 Feb 2021 13:51:39 +0000 (UTC)
commit e0c0662164995c21217860a2cff802a3b90891b4
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Feb 22 13:10:02 2021 +0100
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>
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 673a596fbc..7de141e0cb 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]